2021-09-29 17:57:04 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gnugrep, ncurses, pkg-config, installShellFiles, readline, postgresql }:
|
2018-04-08 07:24:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pspg";
|
2022-08-13 22:35:45 +02:00
|
|
|
version = "5.5.6";
|
2018-04-08 07:24:34 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "okbob";
|
2019-10-23 16:51:14 +02:00
|
|
|
repo = pname;
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2022-08-13 22:35:45 +02:00
|
|
|
sha256 = "sha256-99EuWSNW9e5/GyiR3JwDNFTAOJpaGCJKmxt340bjPrA=";
|
2018-04-08 07:24:34 +02:00
|
|
|
};
|
|
|
|
|
2021-09-29 17:57:04 +02:00
|
|
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
2020-01-21 10:20:00 +01:00
|
|
|
buildInputs = [ gnugrep ncurses readline postgresql ];
|
2018-04-08 07:24:34 +02:00
|
|
|
|
2019-10-23 16:51:14 +02:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2018-04-08 07:24:34 +02:00
|
|
|
|
2021-09-29 17:57:04 +02:00
|
|
|
postInstall = ''
|
2021-10-20 03:51:20 +02:00
|
|
|
installShellCompletion --bash --cmd pspg bash-completion.sh
|
2021-09-29 17:57:04 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-10-23 16:51:14 +02:00
|
|
|
homepage = "https://github.com/okbob/pspg";
|
2018-04-08 07:24:34 +02:00
|
|
|
description = "Postgres Pager";
|
|
|
|
license = licenses.bsd2;
|
2020-01-21 10:20:00 +01:00
|
|
|
platforms = platforms.unix;
|
2018-04-08 07:24:34 +02:00
|
|
|
maintainers = [ maintainers.jlesquembre ];
|
|
|
|
};
|
|
|
|
}
|