2019-01-15 17:07:15 +00:00
|
|
|
{ stdenv, fetchurl, postgresql, getopt, makeWrapper }:
|
2017-07-28 11:50:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ephemeralpg";
|
2020-04-16 17:18:51 +01:00
|
|
|
version = "3.0";
|
2017-07-28 11:50:47 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://ephemeralpg.org/code/${pname}-${version}.tar.gz";
|
2020-04-16 17:18:51 +01:00
|
|
|
sha256 = "1j0g7g114ma7y7sadbng5p1ss1zsm9zpicm77qspym6565733vvh";
|
2017-07-28 11:50:47 +01:00
|
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
PREFIX=$out make install
|
2019-01-15 17:07:15 +00:00
|
|
|
wrapProgram $out/bin/pg_tmp --prefix PATH : ${stdenv.lib.makeBinPath [ postgresql getopt ]}
|
2017-07-28 11:50:47 +01:00
|
|
|
'';
|
2019-01-15 17:17:12 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-07-31 12:16:48 +01:00
|
|
|
description = ''Run tests on an isolated, temporary PostgreSQL database.'';
|
2019-01-15 17:17:12 +00:00
|
|
|
license = licenses.isc;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://ephemeralpg.org/";
|
2019-01-15 17:17:12 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ hrdinka ];
|
2017-07-31 12:16:48 +01:00
|
|
|
};
|
2017-07-28 11:50:47 +01:00
|
|
|
}
|