1 { lib, stdenv, fetchurl, postgresql, getopt, makeWrapper }:
2 stdenv.mkDerivation rec {
6 url = "https://eradman.com/ephemeralpg/code/${pname}-${version}.tar.gz";
7 hash = "sha256-pVQrfSpwJnxCRXAUpZQZsb0Z/wlLbjdaYmhVevgHrgo=";
9 nativeBuildInputs = [ makeWrapper ];
12 PREFIX=$out make install
13 wrapProgram $out/bin/pg_tmp --prefix PATH : ${lib.makeBinPath [ postgresql getopt ]}
16 description = "Run tests on an isolated, temporary PostgreSQL database";
17 license = licenses.isc;
18 homepage = "https://eradman.com/ephemeralpg/";
19 platforms = platforms.all;
20 maintainers = with maintainers; [ hrdinka medv ];