2020-01-21 10:20:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, gnugrep, ncurses, pkgconfig, readline, postgresql }:
|
2018-04-08 07:24:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pspg";
|
2020-03-29 09:27:43 +02:00
|
|
|
version = "2.7.1";
|
2018-04-08 07:24:34 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "okbob";
|
2019-10-23 16:51:14 +02:00
|
|
|
repo = pname;
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2020-03-29 09:27:43 +02:00
|
|
|
sha256 = "1fq8n5naicfv0lsyzfb52c84w40zrsks0x9rrvyyzih4vkhic4vm";
|
2018-04-08 07:24:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-01-21 10:20:00 +01:00
|
|
|
buildInputs = [ gnugrep ncurses readline postgresql ];
|
2018-04-08 07:24:34 +02:00
|
|
|
|
2019-10-23 16:51:14 +02:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2018-04-08 07:24:34 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-10-23 16:51:14 +02:00
|
|
|
homepage = "https://github.com/okbob/pspg";
|
2018-04-08 07:24:34 +02:00
|
|
|
description = "Postgres Pager";
|
|
|
|
license = licenses.bsd2;
|
2020-01-21 10:20:00 +01:00
|
|
|
platforms = platforms.unix;
|
2018-04-08 07:24:34 +02:00
|
|
|
maintainers = [ maintainers.jlesquembre ];
|
|
|
|
};
|
|
|
|
}
|