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