1daa2e5a7e
There are no references to g_memmove in the source anymore, so remove the now unneeded (and failing!) sed fixup. Sourceforge no longer has wireshark sources, the page tells users to download from www.wireshark.org instead. So do that.
59 lines
1.7 KiB
Nix
59 lines
1.7 KiB
Nix
{ stdenv, fetchurl, pkgconfig, perl, flex, bison, libpcap, libnl, c-ares
|
|
, gnutls, libgcrypt, geoip, heimdal, lua5, gtk, makeDesktopItem, python
|
|
, libcap
|
|
}:
|
|
|
|
let version = "1.12.1"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "wireshark-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.wireshark.org/download/src/wireshark-${version}.tar.bz2";
|
|
sha256 = "0jsqpr4s5smadvlm881l8fkhhw384ak3apkq4wxr05gc2va6pcl2";
|
|
};
|
|
|
|
buildInputs = [
|
|
bison flex perl pkgconfig libpcap lua5 heimdal libgcrypt gnutls
|
|
geoip libnl c-ares gtk python libcap
|
|
];
|
|
|
|
patches = [ ./wireshark-lookup-dumpcap-in-path.patch ];
|
|
|
|
configureFlags = "--disable-usr-local --disable-silent-rules --with-gtk2 --without-gtk3 --without-qt --with-ssl";
|
|
|
|
desktopItem = makeDesktopItem {
|
|
name = "Wireshark";
|
|
exec = "wireshark";
|
|
icon = "wireshark";
|
|
comment = "Powerful network protocol analysis suite";
|
|
desktopName = "Wireshark";
|
|
genericName = "Network packet analyzer";
|
|
categories = "Network;System";
|
|
};
|
|
|
|
postInstall = ''
|
|
mkdir -p "$out"/share/applications/
|
|
mkdir -p "$out"/share/icons/
|
|
cp "$desktopItem/share/applications/"* "$out/share/applications/"
|
|
cp image/wsicon.svg "$out"/share/icons/wireshark.svg
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
homepage = http://www.wireshark.org/;
|
|
description = "a powerful network protocol analyzer";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
longDescription = ''
|
|
Wireshark (formerly known as "Ethereal") is a powerful network
|
|
protocol analyzer developed by an international team of networking
|
|
experts. It runs on UNIX, OS X and Windows.
|
|
'';
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ simons bjornfor ];
|
|
};
|
|
}
|