Coffee journaling on ATProto (alpha)
alpha.arabica.social
coffee
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 = pkgs.mkShell { packages = with pkgs; [ go tailwindcss ]; };
12 });
13
14 packages = forAllSystems (pkgs: system: rec {
15 arabica = pkgs.callPackage ./default.nix { };
16 default = arabica;
17 });
18
19 apps = forAllSystems (pkgs: system: {
20 default = {
21 type = "app";
22 program = "${self.packages.${system}.arabica}/bin/arabica";
23 };
24 tailwind = {
25 type = "app";
26 program = toString (pkgs.writeShellScript "tailwind-build" ''
27 cd ${./.}
28 ${pkgs.tailwindcss}/bin/tailwindcss -i static/css/style.css -o static/css/output.css --minify
29 '');
30 };
31 });
32
33 nixosModules.default = import ./module.nix;
34 };
35}