Merge pull request #139933 from marsam/bash-completions-pspg

pspg: install bash completions

authored by

figsoda and committed by
GitHub
005c60cb d41e2333

+6 -2
+6 -2
pkgs/tools/misc/pspg/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, gnugrep, ncurses, pkg-config, readline, postgresql }: 1 + { lib, stdenv, fetchFromGitHub, gnugrep, ncurses, pkg-config, installShellFiles, readline, postgresql }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "pspg"; ··· 11 11 sha256 = "sha256-xJ7kgEvIsTufAZa5x3YpElTc74nEs9C+baVjbheHySM="; 12 12 }; 13 13 14 - nativeBuildInputs = [ pkg-config ]; 14 + nativeBuildInputs = [ pkg-config installShellFiles ]; 15 15 buildInputs = [ gnugrep ncurses readline postgresql ]; 16 16 17 17 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 18 + 19 + postInstall = '' 20 + installShellCompletion --bash --name pspg.bash bash-completion.sh 21 + ''; 18 22 19 23 meta = with lib; { 20 24 homepage = "https://github.com/okbob/pspg";