summary refs log tree commit diff
path: root/pkgs/development/libraries/libpcap
diff options
context:
space:
mode:
authorTungsten842 <886724vf@anonaddy.me>2023-03-16 12:16:28 +0100
committerMatthieu Coudron <teto@users.noreply.github.com>2023-03-19 15:51:01 +0100
commit8f45423217c07a3df6ad49c875f06a56eaede2a5 (patch)
treefb36dc6ce437255c9c871401d117b2bb6dceb470 /pkgs/development/libraries/libpcap
parent916dba8790619ad3002ab489a32f44070e44152d (diff)
libpcap: build with libnl
Diffstat (limited to 'pkgs/development/libraries/libpcap')
-rw-r--r--pkgs/development/libraries/libpcap/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libpcap/default.nix b/pkgs/development/libraries/libpcap/default.nix
index 0f429062e48c8..04c8a0f16ad8d 100644
--- a/pkgs/development/libraries/libpcap/default.nix
+++ b/pkgs/development/libraries/libpcap/default.nix
@@ -4,6 +4,7 @@
 , flex
 , bison
 , bluez
+, libnl
 , libxcrypt
 , pkg-config
 , withBluez ? false
@@ -19,10 +20,12 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-KoiFxANRbPewkz7UsU1sqjDgIFJInr1BTcdaxS51WeY=";
   };
 
-  buildInputs = lib.optionals withRemote [ libxcrypt ];
+  buildInputs = lib.optionals stdenv.isLinux [ libnl ]
+    ++ lib.optionals withRemote [ libxcrypt ];
 
   nativeBuildInputs = [ flex bison ]
-    ++ lib.optionals withBluez [ bluez.dev pkg-config ];
+    ++ lib.optionals stdenv.isLinux [ pkg-config ]
+    ++ lib.optionals withBluez [ bluez.dev ];
 
   # We need to force the autodetection because detection doesn't
   # work in pure build environments.