mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
Merge pull request #232853 from figsoda/threatest
threatest: fix build on darwin, install shell completions
This commit is contained in:
commit
3005f20ce0
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@ -14,7 +15,19 @@ buildGoModule rec {
|
||||
hash = "sha256-xluKQXFa06ng9bs+sBkoFLeyYtQAcej4VFLMeTST6zA=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-tvGmSpihGwpz6TCmbttz0VKvLTChDRWNX3qxOhEpdPM=";
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user