diff options
Diffstat (limited to 'temp-postgres.nix')
-rw-r--r-- | temp-postgres.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/temp-postgres.nix b/temp-postgres.nix new file mode 100644 index 0000000..3dc3338 --- /dev/null +++ b/temp-postgres.nix @@ -0,0 +1,23 @@ +{ lib, stdenv, postgresql, makeBinaryWrapper }: +stdenv.mkDerivation rec { + name = "temp-postgres-${version}"; + version = "0.1"; + + src = ./.; + + nativeBuildInputs = [ + makeBinaryWrapper + ]; + + buildInputs = [ + postgresql + ]; + + installPhase = '' + mkdir -p $out/bin + cp temp-postgres.sh $out/bin/temp-postgres + mkdir -p $out/man/man1 + cp temp-postgres.1 $out/man/man1/temp-postgres.1 + wrapProgram $out/bin/temp-postgres --prefix PATH : ${lib.makeBinPath [ postgresql ]} + ''; +} |