3
0
Fork 0
forked from mirrors/nixpkgs

pspg: install bash completions

This commit is contained in:
Mario Rodas 2021-09-29 10:57:04 -05:00
parent b568bfdd8d
commit a6cbe8893c

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, gnugrep, ncurses, pkg-config, readline, postgresql }:
{ lib, stdenv, fetchFromGitHub, gnugrep, ncurses, pkg-config, installShellFiles, readline, postgresql }:
stdenv.mkDerivation rec {
pname = "pspg";
@ -11,11 +11,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-xJ7kgEvIsTufAZa5x3YpElTc74nEs9C+baVjbheHySM=";
};
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config installShellFiles ];
buildInputs = [ gnugrep ncurses readline postgresql ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
postInstall = ''
installShellCompletion --bash --name pspg.bash bash-completion.sh
'';
meta = with lib; {
homepage = "https://github.com/okbob/pspg";
description = "Postgres Pager";