2017-07-28 12:50:47 +02:00
|
|
|
{ stdenv, fetchurl, postgresql, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ephemeralpg-${version}";
|
2018-07-11 12:01:55 +02:00
|
|
|
version = "2.5";
|
2017-07-28 12:50:47 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ephemeralpg.org/code/${name}.tar.gz";
|
2018-07-11 12:01:55 +02:00
|
|
|
sha256 = "004fcll7248h73adkqawn9bhkqj9wsxyi3w99x64f7s37r2518wk";
|
2017-07-28 12:50:47 +02:00
|
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
PREFIX=$out make install
|
|
|
|
wrapProgram $out/bin/pg_tmp --prefix PATH : ${postgresql}/bin
|
|
|
|
'';
|
2017-07-31 13:16:48 +02:00
|
|
|
meta = {
|
|
|
|
description = ''Run tests on an isolated, temporary PostgreSQL database.'';
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
homepage = http://ephemeralpg.org/;
|
|
|
|
};
|
2017-07-28 12:50:47 +02:00
|
|
|
}
|