Skip to content

Commit

Permalink
threatest: install shell completions
Browse files Browse the repository at this point in the history
  • Loading branch information
figsoda committed May 19, 2023
1 parent 5b14e87 commit f4e1815
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkgs/tools/security/threatest/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:

buildGoModule rec {
Expand All @@ -17,6 +18,17 @@ buildGoModule rec {
proxyVendor = true;
vendorHash = "sha256-UQ3GPSv7P4+oMvcu4eFlosnw0TQxG33ptlMTQA/5Lkw=";

nativeBuildInputs = [
installShellFiles
];

postInstall = ''
installShellCompletion --cmd threatest \
--bash <($out/bin/threatest completion bash) \
--fish <($out/bin/threatest completion fish) \
--zsh <($out/bin/threatest completion zsh)
'';

meta = with lib; {
description = "Framework for end-to-end testing threat detection rules";
homepage = "https://github.com/DataDog/threatest";
Expand Down

0 comments on commit f4e1815

Please sign in to comment.