summaryrefslogtreecommitdiff
path: root/temp-postgres.nix
blob: 3dc333829140434fb4e033d122ae9db469ebd35b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 ]}
  '';
}
Generated by cgit. See skreutz.com for my tech blog and contact information.