mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 01:07:42 +00:00
poutine: add shell completions
This commit is contained in:
parent
a87387ec65
commit
d0fe03881d
@ -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…
Reference in New Issue
Block a user