@@ -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.