mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Merge pull request #321317 from DanNixon/poutine-completions
poutine: add shell completions
This commit is contained in:
commit
c5785d1bd6
1 changed files with 11 additions and 0 deletions
|
@ -1,7 +1,9 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
|
@ -22,6 +24,15 @@ buildGoModule rec {
|
|||
"-w"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd ${meta.mainProgram} \
|
||||
--bash <($out/bin/${meta.mainProgram} completion bash) \
|
||||
--fish <($out/bin/${meta.mainProgram} completion fish) \
|
||||
--zsh <($out/bin/${meta.mainProgram} completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Security scanner that detects misconfigurations and vulnerabilities in build pipelines of repositories";
|
||||
homepage = "https://github.com/boostsecurityio/poutine";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue