nixpkgs/pkgs/tools/misc/pspg/default.nix
R. RyanTM 19ff9f60e2 pspg: 1.3.0 -> 1.4.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
pspg
2018-08-30 12:04:57 -07:00

28 lines
710 B
Nix

{ stdenv, fetchFromGitHub, gnugrep, ncurses, pkgconfig, readline }:
stdenv.mkDerivation rec {
name = "pspg-${version}";
version = "1.4.2";
src = fetchFromGitHub {
owner = "okbob";
repo = "pspg";
rev = "${version}";
sha256 = "0hmx9p5pbydnf8sil4vqpmly5mq2rvcj8a33s9fvfisnxxsqz73v";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gnugrep ncurses readline ];
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 ];
};
}