Coffee journaling on ATProto (alpha) alpha.arabica.social
coffee
at main 36 lines 1.1 kB view raw
1{ 2 description = "Arabica - Coffee brew tracking application"; 3 inputs = { nixpkgs.url = "nixpkgs/nixpkgs-unstable"; }; 4 outputs = { nixpkgs, self, ... }: 5 let 6 forAllSystems = function: 7 nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] 8 (system: function nixpkgs.legacyPackages.${system} system); 9 in { 10 devShells = forAllSystems (pkgs: system: { 11 default = 12 pkgs.mkShell { packages = with pkgs; [ go tailwindcss templ ]; }; 13 }); 14 15 packages = forAllSystems (pkgs: system: rec { 16 arabica = pkgs.callPackage ./default.nix { }; 17 default = arabica; 18 }); 19 20 apps = forAllSystems (pkgs: system: { 21 default = { 22 type = "app"; 23 program = "${self.packages.${system}.arabica}/bin/arabica"; 24 }; 25 tailwind = { 26 type = "app"; 27 program = toString (pkgs.writeShellScript "tailwind-build" '' 28 cd ${./.} 29 ${pkgs.tailwindcss}/bin/tailwindcss -i static/css/app.css -o static/css/output.css --minify 30 ''); 31 }; 32 }); 33 34 nixosModules.default = import ./module.nix; 35 }; 36}