From 1795ca14c36575b16ae4de92b8443fdd145d44ff Mon Sep 17 00:00:00 2001 From: Michael Bishop Date: Sat, 27 Oct 2018 08:15:31 -0300 Subject: [PATCH] wireshark: include headers in wireshark.dev, to support building wireshark plugins --- .../networking/sniffers/wireshark/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/applications/networking/sniffers/wireshark/default.nix b/pkgs/applications/networking/sniffers/wireshark/default.nix index 753defb0b4f0..5d82b1174866 100644 --- a/pkgs/applications/networking/sniffers/wireshark/default.nix +++ b/pkgs/applications/networking/sniffers/wireshark/default.nix @@ -17,6 +17,7 @@ let in stdenv.mkDerivation { name = "wireshark-${variant}-${version}"; + outputs = [ "out" "dev" ]; src = fetchurl { url = "https://www.wireshark.org/download/src/all-versions/wireshark-${version}.tar.xz"; @@ -87,6 +88,16 @@ in stdenv.mkDerivation { --replace "Exec=wireshark" "Exec=$out/bin/wireshark" install -Dm644 ../image/wsicon.svg $out/share/icons/wireshark.svg + mkdir $dev/include/{epan/{wmem,ftypes,dfilter},wsutil,wiretap} -pv + + cp config.h $dev/include/ + cp ../ws_*.h $dev/include + cp ../epan/*.h $dev/include/epan/ + cp ../epan/wmem/*.h $dev/include/epan/wmem/ + cp ../epan/ftypes/*.h $dev/include/epan/ftypes/ + cp ../epan/dfilter/*.h $dev/include/epan/dfilter/ + cp ../wsutil/*.h $dev/include/wsutil/ + cp ../wiretap/*.h $dev/include/wiretap ''; enableParallelBuilding = true;