60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
22 lines
767 B
Nix
22 lines
767 B
Nix
{ lib, stdenv, fetchurl, postgresql, getopt, makeWrapper }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "ephemeralpg";
|
|
version = "3.3";
|
|
src = fetchurl {
|
|
url = "https://eradman.com/ephemeralpg/code/${pname}-${version}.tar.gz";
|
|
hash = "sha256-pVQrfSpwJnxCRXAUpZQZsb0Z/wlLbjdaYmhVevgHrgo=";
|
|
};
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
PREFIX=$out make install
|
|
wrapProgram $out/bin/pg_tmp --prefix PATH : ${lib.makeBinPath [ postgresql getopt ]}
|
|
'';
|
|
meta = with lib; {
|
|
description = "Run tests on an isolated, temporary PostgreSQL database";
|
|
license = licenses.isc;
|
|
homepage = "https://eradman.com/ephemeralpg/";
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ hrdinka medv ];
|
|
};
|
|
}
|