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

31 lines
805 B
Nix
Raw Normal View History

2021-09-29 16:57:04 +01:00
{ lib, stdenv, fetchFromGitHub, gnugrep, ncurses, pkg-config, installShellFiles, readline, postgresql }:
2018-04-08 06:24:34 +01:00
stdenv.mkDerivation rec {
pname = "pspg";
2021-10-20 02:51:20 +01:00
version = "5.4.1";
2018-04-08 06:24:34 +01:00
src = fetchFromGitHub {
owner = "okbob";
repo = pname;
2019-09-09 00:38:31 +01:00
rev = version;
2021-10-20 02:51:20 +01:00
sha256 = "1pi9dbjhd2mj11p3hx74f3rr8ysriq7sy2x012r0kil3b5xzpv2p";
2018-04-08 06:24:34 +01:00
};
2021-09-29 16:57:04 +01:00
nativeBuildInputs = [ pkg-config installShellFiles ];
2020-01-21 09:20:00 +00:00
buildInputs = [ gnugrep ncurses readline postgresql ];
2018-04-08 06:24:34 +01:00
makeFlags = [ "PREFIX=${placeholder "out"}" ];
2018-04-08 06:24:34 +01:00
2021-09-29 16:57:04 +01:00
postInstall = ''
2021-10-20 02:51:20 +01:00
installShellCompletion --bash --cmd pspg bash-completion.sh
2021-09-29 16:57:04 +01:00
'';
meta = with lib; {
homepage = "https://github.com/okbob/pspg";
2018-04-08 06:24:34 +01:00
description = "Postgres Pager";
license = licenses.bsd2;
2020-01-21 09:20:00 +00:00
platforms = platforms.unix;
2018-04-08 06:24:34 +01:00
maintainers = [ maintainers.jlesquembre ];
};
}