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