Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
830 B
Nix
38 lines
830 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
postgresql,
|
|
getopt,
|
|
makeWrapper,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "ephemeralpg";
|
|
version = "3.4";
|
|
src = fetchurl {
|
|
url = "https://eradman.com/ephemeralpg/code/${pname}-${version}.tar.gz";
|
|
hash = "sha256-IwAIJFW/ahDXGgINi4N9mG3XKw74JXK6+SLxGMZ8tS0=";
|
|
};
|
|
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
|
|
];
|
|
};
|
|
}
|