2021-10-01 09:20:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gnugrep, ncurses, pkg-config, installShellFiles, readline, postgresql }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pspg";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "5.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "okbob";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-28 06:52:43 +00:00
|
|
|
sha256 = "1pi9dbjhd2mj11p3hx74f3rr8ysriq7sy2x012r0kil3b5xzpv2p";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ gnugrep ncurses readline postgresql ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
postInstall = ''
|
2021-10-28 06:52:43 +00:00
|
|
|
installShellCompletion --bash --cmd pspg bash-completion.sh
|
2021-10-01 09:20:50 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/okbob/pspg";
|
|
|
|
description = "Postgres Pager";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.jlesquembre ];
|
|
|
|
};
|
|
|
|
}
|