git.iko.soy/typeable/nixpkgs
on master help sign in
bettercap: build on darwin
commit2e30e228b716f5b9982e2598c7047e9e041ee605 authorzowoq <59103226+zowoq@users.noreply.github.com> dateMon 21 Sep 2020, 07:56 (6 years ago) parent5c27f0d
1 file changed+4−3
pkgs/tools/security/bettercap/default.nix+4−3
pkgs/tools/security/bettercap/default.nix+4−3
@@ -1,4 +1,4 @@
1−{ lib
1+{ stdenv
22, buildGoModule
33, fetchFromGitHub
44, pkg-config
@@ -24,9 +24,10 @@ buildGoModule rec {
2424 doCheck = false;
2525
2626 nativeBuildInputs = [ pkg-config ];
27− buildInputs = [ libpcap libnfnetlink libnetfilter_queue libusb1 ];
27+ buildInputs = [ libpcap libusb1 ]
28+ ++ stdenv.lib.optionals stdenv.isLinux [ libnfnetlink libnetfilter_queue ];
2829
29− meta = with lib; {
30+ meta = with stdenv.lib; {
3031 description = "A man in the middle tool";
3132 longDescription = ''
3233 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.