-
Notifications
You must be signed in to change notification settings - Fork 3
/
shell.nix
19 lines (18 loc) · 759 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
with import (builtins.fetchTarball {
name = "2022-10-14";
url = "https://github.com/NixOS/nixpkgs/archive/cc090d2b942f76fad83faf6e9c5ed44b73ba7114.tar.gz";
sha256 = "0a1wwpbn2f38pcays6acq1gz19vw4jadl8yd3i3cd961f1x2vdq2";
}) {};
mkShell {
buildInputs =
let
extensionName = "postgrest_openapi";
supportedPgVersions = [ postgresql_15 postgresql_14 postgresql_13 postgresql_12 postgresql_11 ];
pgWExtension = { postgresql }: postgresql.withPackages (p: [ (callPackage ./nix/pgExtension.nix { inherit postgresql extensionName; }) ]);
extAll = map (x: callPackage ./nix/pgScript.nix { postgresql = pgWExtension { postgresql = x;}; }) supportedPgVersions;
in
extAll;
shellHook = ''
export HISTFILE=.history
'';
}