1 { lib, stdenv, fetchzip, libpcap, glib, pkg-config, libnet }:
6 url = "mirror://sourceforge/libnids/libnids-1.24.tar.gz";
7 sha256 = "1cblklfdfxcmy0an6xyyzx4l877xdawhjd28daqfsvrh81mb07k1";
9 nativeBuildInputs = [ pkg-config ];
10 buildInputs = [ libpcap glib libnet ];
13 Quoting the documentation of glib: g_thread_init has been deprecated since
14 version 2.32 and should not be used in newly-written code. This function is
15 no longer necessary. The GLib threading system is automatically initialized
16 at the start of your program.
18 this is necessary for dsniff to compile; otherwise g_thread_init is a missing
19 symbol when linking (?!?)
21 NIX_CFLAGS_COMPILE="-Dg_thread_init= ";
24 description = "An E-component of Network Intrusion Detection System which emulates the IP stack of Linux 2.0.x";
25 homepage = "http://libnids.sourceforge.net/";
26 license = licenses.gpl2;
27 maintainers = [ maintainers.symphorien ];
28 # probably also bsd and solaris
29 platforms = platforms.linux;