1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00
nixpkgs/pkgs/tools/misc/pspg/default.nix

29 lines
710 B
Nix
Raw Normal View History

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}";
version = "1.6.2";
2018-04-08 06:24:34 +01:00
src = fetchFromGitHub {
owner = "okbob";
repo = "pspg";
rev = "${version}";
sha256 = "0gg94isnmng1qigghc2lrk4mvim20clbfhacwlxnd237ypv4mn2s";
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 ];
};
}