From 8f45423217c07a3df6ad49c875f06a56eaede2a5 Mon Sep 17 00:00:00 2001 From: Tungsten842 <886724vf@anonaddy.me> Date: Thu, 16 Mar 2023 12:16:28 +0100 Subject: [PATCH] libpcap: build with libnl --- pkgs/development/libraries/libpcap/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libpcap/default.nix b/pkgs/development/libraries/libpcap/default.nix index 0f429062e48c..04c8a0f16ad8 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.