nixpkgs/pkgs/development/tools/database/ephemeralpg/default.nix

23 lines
749 B
Nix
Raw Normal View History

{ stdenv, fetchurl, postgresql, getopt, makeWrapper }:
2017-07-28 11:50:47 +01:00
stdenv.mkDerivation rec {
name = "ephemeralpg-${version}";
version = "2.5";
2017-07-28 11:50:47 +01:00
src = fetchurl {
url = "http://ephemeralpg.org/code/${name}.tar.gz";
sha256 = "004fcll7248h73adkqawn9bhkqj9wsxyi3w99x64f7s37r2518wk";
2017-07-28 11:50:47 +01:00
};
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out
PREFIX=$out make install
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;
2017-07-31 12:16:48 +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
}