nixpkgs/pkgs/tools/misc/pspg/default.nix

29 lines
710 B
Nix
Raw Normal View History

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