forked from mirrors/nixpkgs
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
23 lines
751 B
Nix
23 lines
751 B
Nix
{ stdenv, fetchurl, postgresql, getopt, makeWrapper }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "ephemeralpg";
|
|
version = "2.5";
|
|
src = fetchurl {
|
|
url = "http://ephemeralpg.org/code/${pname}-${version}.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 ];
|
|
};
|
|
}
|