-
Notifications
You must be signed in to change notification settings - Fork 5
/
shell.nix
36 lines (33 loc) · 892 Bytes
/
shell.nix
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
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs { };
postgresql = pkgs.postgresql;
pg_prove = pkgs.stdenv.mkDerivation {
name = "pg_prove";
nativeBuildInputs = [ pkgs.makeWrapper ];
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${pkgs.perlPackages.TAPParserSourceHandlerpgTAP}/bin/pg_prove $out/bin/pg_prove \
--prefix PATH : ${pkgs.lib.makeBinPath [ postgresql ]}
makeWrapper ${pkgs.perlPackages.TAPParserSourceHandlerpgTAP}/bin/pg_tapgen $out/bin/pg_tapgen \
--prefix PATH : ${pkgs.lib.makeBinPath [ postgresql ]}
'';
};
in
pkgs.mkShell {
buildInputs = [
pkgs.cacert
pkgs.cargo
pkgs.docker
pkgs.gitFull
pkgs.gnumake
pkgs.nodejs
(postgresql.withPackages (ps: [
ps.pgtap
pg_prove
]))
pkgs.pre-commit
pkgs.which
];
}