Skip to content

Commit

Permalink
Merge pull request #325483 from SFrijters/gitleaks-completions
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Jul 10, 2024
2 parents 0bd7ea1 + a0b7f2b commit 0f8eee8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/tools/security/gitleaks/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
gitleaks,
Expand Down Expand Up @@ -31,7 +32,7 @@ buildGoModule rec {
# With v8 the config tests are are blocking
doCheck = false;

postInstall = ''
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd ${pname} \
--bash <($out/bin/${pname} completion bash) \
--fish <($out/bin/${pname} completion fish) \
Expand Down

0 comments on commit 0f8eee8

Please sign in to comment.