depot/third_party/nixpkgs/pkgs/development/tools/database/ephemeralpg/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

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 ];
};
}