mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
Merge pull request #139933 from marsam/bash-completions-pspg
pspg: install bash completions
This commit is contained in:
commit
005c60cbfd
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user