summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2014-10-16 20:08:52 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-10-16 20:32:28 +0200
commit287d6d5d3aef2fd8b7f394cf233810bb2f7da6e2 (patch)
tree89aff93d19fc316c1cb7bd8a97c4b02fc7ae27b3 /pkgs/development/libraries
parentfe5ebe0186714bf96f1cd00dc096977253c069b6 (diff)
downloadnixlib-287d6d5d3aef2fd8b7f394cf233810bb2f7da6e2.tar
nixlib-287d6d5d3aef2fd8b7f394cf233810bb2f7da6e2.tar.gz
nixlib-287d6d5d3aef2fd8b7f394cf233810bb2f7da6e2.tar.bz2
nixlib-287d6d5d3aef2fd8b7f394cf233810bb2f7da6e2.tar.lz
nixlib-287d6d5d3aef2fd8b7f394cf233810bb2f7da6e2.tar.xz
nixlib-287d6d5d3aef2fd8b7f394cf233810bb2f7da6e2.tar.zst
nixlib-287d6d5d3aef2fd8b7f394cf233810bb2f7da6e2.zip
libpcap: pass --with-pcap=linux for all linux systems
...instead of just for i686-linux.

Without a --with-pcap= configure flag, the build system tries to
auto-detect the backend by poking in /dev, /usr/include etc... In the
pure nix world, this auto-detection fails. (Good, we don't want host
details to leak into the build.)

The end result of this (failed) auto-detection; no packet capture
possible:

  $ sudo tcpdump -i wlp2s0
  tcpdump: live packet capture not supported on this system

This fixes the above issue on 64-bit linux systems, and probably other
architectures supported by linux.
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/libpcap/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libpcap/default.nix b/pkgs/development/libraries/libpcap/default.nix
index 77b0d3975c0b..c6f1f1a1ddcb 100644
--- a/pkgs/development/libraries/libpcap/default.nix
+++ b/pkgs/development/libraries/libpcap/default.nix
@@ -10,8 +10,7 @@ stdenv.mkDerivation rec {
   
   nativeBuildInputs = [ flex bison ];
   
-  # Apparently, 32 bit systems need this forced? Not verified if still needed.
-  configureFlags = stdenv.lib.optionals (stdenv.system == "i686-linux") "--with-pcap=linux";
+  configureFlags = stdenv.lib.optionals stdenv.isLinux "--with-pcap=linux";
 
   preInstall = ''mkdir -p $out/bin'';