nixpkgs-suyu/pkgs/applications/misc/ephemeralpg/default.nix
R. RyanTM 537a8bf4fb ephemeralpg: 2.2 -> 2.5 (#43207)
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
2018-07-11 12:01:55 +02:00

20 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/;
};
}