Skip to content

Commit

Permalink
Merge pull request #232853 from figsoda/threatest
Browse files Browse the repository at this point in the history
threatest: fix build on darwin, install shell completions
  • Loading branch information
fabaff authored May 20, 2023
2 parents d4a9afb + f4e1815 commit 3005f20
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion 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 @@ -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";
Expand Down

1 comment on commit 3005f20

@nixos-discourse
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/sway-fails-to-start-cant-load-drivers/28357/1

Please sign in to comment.