1 { lib, stdenv, fetchFromGitHub, gnugrep, ncurses, pkg-config, installShellFiles, readline, postgresql }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-SE+62EODKWcKFpMMbWDw+Dp5b2D/XKbMFiJiD/ObrhU=";
14 nativeBuildInputs = [ pkg-config installShellFiles ];
15 buildInputs = [ gnugrep ncurses readline postgresql ];
17 makeFlags = [ "PREFIX=${placeholder "out"}" ];
21 installShellCompletion --bash --cmd pspg bash-completion.sh
25 homepage = "https://github.com/okbob/pspg";
26 description = "Postgres Pager";
27 license = licenses.bsd2;
28 platforms = platforms.unix;
29 maintainers = [ maintainers.jlesquembre ];