blob: e136b180d78c89782e89b3e01dfeb2d606d16add (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ stdenv, fetchurl, postgresql, getopt, makeWrapper }:
stdenv.mkDerivation rec {
name = "ephemeralpg-${version}";
version = "2.5";
src = fetchurl {
url = "http://ephemeralpg.org/code/${name}.tar.gz";
sha256 = "004fcll7248h73adkqawn9bhkqj9wsxyi3w99x64f7s37r2518wk";
};
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out
PREFIX=$out make install
wrapProgram $out/bin/pg_tmp --prefix PATH : ${stdenv.lib.makeBinPath [ postgresql getopt ]}
'';
meta = with stdenv.lib; {
description = ''Run tests on an isolated, temporary PostgreSQL database.'';
license = licenses.isc;
homepage = http://ephemeralpg.org/;
platforms = platforms.all;
maintainers = with maintainers; [ hrdinka ];
};
}
|