2018-04-26 19:27:41 +01:00
|
|
|
{ stdenv, fetchFromGitHub, gnugrep, ncurses, pkgconfig, readline }:
|
2018-04-08 06:24:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pspg-${version}";
|
2018-05-07 06:49:59 +01:00
|
|
|
version = "1.1.1";
|
2018-04-08 06:24:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "okbob";
|
|
|
|
repo = "pspg";
|
|
|
|
rev = "${version}";
|
2018-05-07 06:49:59 +01:00
|
|
|
sha256 = "19jiixanyghasd2awkxx7c224fz01d9v0c4qxn4msvkny39m3gz9";
|
2018-04-08 06:24:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-04-26 19:27:41 +01:00
|
|
|
buildInputs = [ gnugrep ncurses readline ];
|
2018-04-08 06:24:34 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|