mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
537a8bf4fb
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/ephemeralpg/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/xx8s6cx068zvag43h4aimx5bmfrjbdim-ephemeralpg-2.5/bin/pg_tmp had a zero exit code or showed the expected version - /nix/store/xx8s6cx068zvag43h4aimx5bmfrjbdim-ephemeralpg-2.5/bin/getsocket passed the binary check. - Warning: no invocation of /nix/store/xx8s6cx068zvag43h4aimx5bmfrjbdim-ephemeralpg-2.5/bin/.pg_tmp-wrapped had a zero exit code or showed the expected version - 1 of 3 passed binary check by having a zero exit code. - 0 of 3 passed binary check by having the new version present in output. - found 2.5 with grep in /nix/store/xx8s6cx068zvag43h4aimx5bmfrjbdim-ephemeralpg-2.5 - directory tree listing: https://gist.github.com/ef7c65928ca73f639338d8dd6d45f9aa - du listing: https://gist.github.com/74d9b22fa087781cb35087ad48fefaa3
21 lines
625 B
Nix
21 lines
625 B
Nix
{ stdenv, fetchurl, postgresql, makeWrapper }:
|
|
stdenv.mkDerivation rec {
|
|
name = "ephemeralpg-${version}";
|
|
version = "2.5";
|
|
src = fetchurl {
|
|
url = "http://ephemeralpg.org/code/${name}.tar.gz";
|
|
sha256 = "004fcll7248h73adkqawn9bhkqj9wsxyi3w99x64f7s37r2518wk";
|
|
};
|
|
buildInputs = [ makeWrapper ];
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
PREFIX=$out make install
|
|
wrapProgram $out/bin/pg_tmp --prefix PATH : ${postgresql}/bin
|
|
'';
|
|
meta = {
|
|
description = ''Run tests on an isolated, temporary PostgreSQL database.'';
|
|
license = stdenv.lib.licenses.isc;
|
|
homepage = http://ephemeralpg.org/;
|
|
};
|
|
}
|