diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-09-21 07:56:23 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-09-23 07:29:07 +1000 |
commit | 2e30e228b716f5b9982e2598c7047e9e041ee605 (patch) | |
tree | 99a6e7bb7d83ed4d47876a7e4c031e6eb4994984 /pkgs/tools/security/bettercap | |
parent | 5c27f0dd6544d9edf5b83fe7d09ee0d58e0fade8 (diff) |
bettercap: build on darwin
Diffstat (limited to 'pkgs/tools/security/bettercap')
-rw-r--r-- | pkgs/tools/security/bettercap/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/security/bettercap/default.nix b/pkgs/tools/security/bettercap/default.nix index a8ca38e1f1dc5..17cb0308a168e 100644 --- a/pkgs/tools/security/bettercap/default.nix +++ b/pkgs/tools/security/bettercap/default.nix @@ -1,4 +1,4 @@ -{ lib +{ stdenv , buildGoModule , fetchFromGitHub , pkg-config @@ -24,9 +24,10 @@ buildGoModule rec { doCheck = false; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ libpcap libnfnetlink libnetfilter_queue libusb1 ]; + buildInputs = [ libpcap libusb1 ] + ++ stdenv.lib.optionals stdenv.isLinux [ libnfnetlink libnetfilter_queue ]; - meta = with lib; { + meta = with stdenv.lib; { description = "A man in the middle tool"; longDescription = '' BetterCAP is a powerful, flexible and portable tool created to perform various types of MITM attacks against a network, manipulate HTTP, HTTPS and TCP traffic in realtime, sniff for credentials and much more. |