summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 7829d471ad09a783cbc45ce2a2fc83a255546ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  outputs = { nixpkgs, self }:
    let
      supportedSystems = [
        "x86_64-linux"
        "aarch64-darwin"
      ];
      eachSystem = nixpkgs.lib.genAttrs supportedSystems;
      eachNixpkgs = f: eachSystem (system: f (import nixpkgs { inherit system; }));
    in
      {
        packages = eachNixpkgs (pkgs: {

        });

        devShells = eachNixpkgs (pkgs: {
          default = pkgs.mkShell {
            inputsFrom = [
              # self.packages.${pkgs.system}.app
              # self.packages.${pkgs.system}.watermark-worker
              # self.packages.${pkgs.system}.notification-worker
            ];
            buildInputs = with pkgs; [
              # Services needed for a full deployment.
              minio
              beanstalkd
              postgresql_17

              # Development utilities.
              minio-client
              modd

              # Python interpreter
              (python3.withPackages (ps: with ps; [
                pillow
                psycopg
                boto3
                beanstalkc
              ]))
            ];
          };
        });

        formatter = eachNixpkgs (pkgs: pkgs.alejandra);
      };
}