forked from supabase/supa_audit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
17 lines (17 loc) · 916 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
let
nixpkgs = builtins.fetchTarball {
name = "2021-12";
url = "https://github.com/NixOS/nixpkgs/archive/5f8babdd259d68ff8052dfc8d650ebdf9cc3bd75.tar.gz";
};
in with import nixpkgs {};
mkShell {
buildInputs =
let
pgWithExt = { pg }: pg.withPackages (p: [ (callPackage ./nix/supa_audit { postgresql = pg; }) ]);
pg_14_w_supa_audit = callPackage ./nix/supa_audit/pgScript.nix { postgresql = pgWithExt { pg = postgresql_14; }; };
pg_13_w_supa_audit = callPackage ./nix/supa_audit/pgScript.nix { postgresql = pgWithExt { pg = postgresql_13; }; };
pg_12_w_supa_audit = callPackage ./nix/supa_audit/pgScript.nix { postgresql = pgWithExt { pg = postgresql_12; }; };
pg_11_w_supa_audit = callPackage ./nix/supa_audit/pgScript.nix { postgresql = pgWithExt { pg = postgresql_11; }; };
in
[ pg_14_w_supa_audit pg_13_w_supa_audit pg_12_w_supa_audit pg_11_w_supa_audit ];
}