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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "5.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "okbob";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-nsGBBGw66LCwOuNdBjlz6u9RT+BX6iZmZeDY9yJoc+c=";
|
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 = ''
|
2023-02-16 17:41:37 +00:00
|
|
|
installManPage pspg.1
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "pspg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|