Merge pull request #232853 from figsoda/threatest

threatest: fix build on darwin, install shell completions

authored by Fabian Affolter and committed by GitHub 3005f20c d4a9afba

+14 -1
+14 -1
pkgs/tools/security/threatest/default.nix
··· 1 1 { lib 2 2 , buildGoModule 3 3 , fetchFromGitHub 4 + , installShellFiles 4 5 }: 5 6 6 7 buildGoModule rec { ··· 14 15 hash = "sha256-xluKQXFa06ng9bs+sBkoFLeyYtQAcej4VFLMeTST6zA="; 15 16 }; 16 17 17 - vendorHash = "sha256-tvGmSpihGwpz6TCmbttz0VKvLTChDRWNX3qxOhEpdPM="; 18 + proxyVendor = true; 19 + vendorHash = "sha256-UQ3GPSv7P4+oMvcu4eFlosnw0TQxG33ptlMTQA/5Lkw="; 20 + 21 + nativeBuildInputs = [ 22 + installShellFiles 23 + ]; 24 + 25 + postInstall = '' 26 + installShellCompletion --cmd threatest \ 27 + --bash <($out/bin/threatest completion bash) \ 28 + --fish <($out/bin/threatest completion fish) \ 29 + --zsh <($out/bin/threatest completion zsh) 30 + ''; 18 31 19 32 meta = with lib; { 20 33 description = "Framework for end-to-end testing threat detection rules";