3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/database/ephemeralpg/default.nix

23 lines
747 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, postgresql, getopt, makeWrapper }:
2017-07-28 11:50:47 +01:00
stdenv.mkDerivation rec {
pname = "ephemeralpg";
2020-10-24 20:11:39 +01:00
version = "3.1";
2017-07-28 11:50:47 +01:00
src = fetchurl {
url = "http://ephemeralpg.org/code/${pname}-${version}.tar.gz";
2020-10-24 20:11:39 +01:00
sha256 = "1ap22ki8yz6agd0qybcjgs4b9izw1rwwcgpxn3jah2ccfyax34s6";
2017-07-28 11:50:47 +01:00
};
nativeBuildInputs = [ makeWrapper ];
2017-07-28 11:50:47 +01:00
installPhase = ''
mkdir -p $out
PREFIX=$out make install
wrapProgram $out/bin/pg_tmp --prefix PATH : ${lib.makeBinPath [ postgresql getopt ]}
2017-07-28 11:50:47 +01:00
'';
meta = with lib; {
description = "Run tests on an isolated, temporary PostgreSQL database";
2019-01-15 17:17:12 +00:00
license = licenses.isc;
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
}