1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/applications/misc/ephemeralpg/default.nix

21 lines
625 B
Nix
Raw Normal View History

2017-07-28 11:50:47 +01:00
{ stdenv, fetchurl, postgresql, makeWrapper }:
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 : ${postgresql}/bin
'';
2017-07-31 12:16:48 +01:00
meta = {
description = ''Run tests on an isolated, temporary PostgreSQL database.'';
license = stdenv.lib.licenses.isc;
homepage = http://ephemeralpg.org/;
};
2017-07-28 11:50:47 +01:00
}