2018-04-26 20:27:41 +02:00
|
|
|
{ stdenv, fetchFromGitHub, gnugrep, ncurses, pkgconfig, readline }:
|
2018-04-08 07:24:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pspg-${version}";
|
2019-08-05 12:10:29 +02:00
|
|
|
version = "1.6.8";
|
2018-04-08 07:24:34 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "okbob";
|
|
|
|
repo = "pspg";
|
|
|
|
rev = "${version}";
|
2019-08-05 12:10:29 +02:00
|
|
|
sha256 = "1lwzyimn28a7q8k2c8z7and4qhrdil0za8lixh96z6x4lcb0rz5q";
|
2018-04-08 07:24:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-04-26 20:27:41 +02:00
|
|
|
buildInputs = [ gnugrep ncurses readline ];
|
2018-04-08 07:24:34 +02:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlags="PREFIX=$out PKG_CONFIG=${pkgconfig}/bin/pkg-config"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/okbob/pspg;
|
|
|
|
description = "Postgres Pager";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.jlesquembre ];
|
|
|
|
};
|
|
|
|
}
|