Merge pull request #232853 from figsoda/threatest

threatest: fix build on darwin, install shell completions

Changed files
+14 -1
pkgs
tools
security
threatest
+14 -1
pkgs/tools/security/threatest/default.nix
···
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
···
hash = "sha256-xluKQXFa06ng9bs+sBkoFLeyYtQAcej4VFLMeTST6zA=";
};
-
vendorHash = "sha256-tvGmSpihGwpz6TCmbttz0VKvLTChDRWNX3qxOhEpdPM=";
meta = with lib; {
description = "Framework for end-to-end testing threat detection rules";
···
{ lib
, buildGoModule
, fetchFromGitHub
+
, installShellFiles
}:
buildGoModule rec {
···
hash = "sha256-xluKQXFa06ng9bs+sBkoFLeyYtQAcej4VFLMeTST6zA=";
};
+
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";