[Nix-dev] wireshark libpcacp - Update amd64?

Marc Weber marco-oweber at gmx.de
Sun Feb 8 18:18:26 CET 2009


I've had no chance making wireshark work and I always wanted to know
what has caused that..

I do know it now: pcap-null.c driver has been compiled which is only a
stub.

This patch fixes it for me but maybe you can try wether libpcap does
still work for you as well?

I don't like the --with-pcap=linux very much and I haven't checked
wether I should have added more backend implementations yet..

So does anyone mind me comitting it for now?

Do you know more about libpcap and those pcap-*.c implementations than I
do?

Sincerly
Marc Weber

======= patch ============

diff --git a/pkgs/applications/networking/sniffers/wireshark/default.nix
b/pkgs/applications/networking/sniffers/wireshark/default.nix
index 1dbb21b..34cd73d 100644
--- a/pkgs/applications/networking/sniffers/wireshark/default.nix
+++ b/pkgs/applications/networking/sniffers/wireshark/default.nix
@@ -3,8 +3,9 @@
 stdenv.mkDerivation {
   name = "wireshark-1.0.3";
   src = fetchurl {
-    url =
     http://www.wireshark.org/download/src/wireshark-1.0.3.tar.bz2;
-    sha256 = "1wmkbq0rgy7rz8mqggyay98z4qd3s9bnv5lmvx1r55sndcq6z2bp";
+    url = http://www.wireshark.org/download/src/wireshark-1.1.2.tar.gz;
+    sha256 = "0fsf84czzxg0gpyf525lx2c9i8la26fkhqv4visz5bz2r0911yd4";
   };
+  configureFlags = "--with-pcap=${libpcap}";
   buildInputs = [perl pkgconfig gtk libpcap flex bison];
 }
diff --git a/pkgs/development/libraries/libpcap/default.nix
b/pkgs/development/libraries/libpcap/default.nix
index 3246155..5dbbf01 100644
--- a/pkgs/development/libraries/libpcap/default.nix
+++ b/pkgs/development/libraries/libpcap/default.nix
@@ -1,16 +1,23 @@
 {stdenv, fetchurl, flex, bison}:
 
 stdenv.mkDerivation rec {
-  name = "libpcap-0.9.4";
+  name = "libpcap-1.0.0";
   src = fetchurl {
       url = [
        "mirror://tcpdump/release/${name}.tar.gz"
        "http://www.sfr-fresh.com/unix/misc/${name}.tar.gz"
       ];
-      sha256 = "0q0cnn607kfa4y4rbz3glg5lfr8r08s8l08w8fwrr3d6njjzd71p";
+      sha256 = "1h3kmj485qz1i08xs4sc3a0bmhs1rvq0h7gycs7paap2szhw8552";
   };
   buildInputs = [flex bison];
-  configureFlags = "
-    ${if stdenv.system == "i686-linux" then "--with-pcap=linux" else
     ""}
-  ";
+  configureFlags = [
+      "${if stdenv.system == "i686-linux" then "--with-pcap=linux" else ""}"
+       "--with-pcap=linux"
+  ];
+
+  preInstall = ''ensureDir $out/bin'';
+  patches = if stdenv.system == "i686-linux"
+      then []
+      else [ ./libpcap_amd64.patch ];
+
 }




More information about the nix-dev mailing list