depot/third_party/nixpkgs/pkgs/development/tools/database/ephemeralpg/default.nix
Default email ae1b531433 Project import generated by Copybara.
GitOrigin-RevId: 1dc37370c489b610f8b91d7fdd40633163ffbafd
2020-10-27 01:29:36 +01:00

22 lines
750 B
Nix

{ stdenv, fetchurl, postgresql, getopt, makeWrapper }:
stdenv.mkDerivation rec {
pname = "ephemeralpg";
version = "3.1";
src = fetchurl {
url = "http://ephemeralpg.org/code/${pname}-${version}.tar.gz";
sha256 = "1ap22ki8yz6agd0qybcjgs4b9izw1rwwcgpxn3jah2ccfyax34s6";
};
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 ];
};
}