rio: 0.0.36 -> 0.0.37
[NixPkgs.git] / pkgs / tools / networking / libnids / default.nix
blob97edccfea1731bc6754c791b0780685d4cec150c
1 { lib, stdenv, fetchzip, libpcap, glib, pkg-config, libnet }:
2 stdenv.mkDerivation {
3   pname = "libnids";
4   version = "1.24";
5   src = fetchzip {
6     url = "mirror://sourceforge/libnids/libnids-1.24.tar.gz";
7     sha256 = "1cblklfdfxcmy0an6xyyzx4l877xdawhjd28daqfsvrh81mb07k1";
8   };
9   nativeBuildInputs = [ pkg-config ];
10   buildInputs = [ libpcap glib libnet ];
12   /*
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 (?!?)
20   */
21   env.NIX_CFLAGS_COMPILE = "-Dg_thread_init= ";
23   meta = with lib; {
24     description = "An E-component of Network Intrusion Detection System which emulates the IP stack of Linux 2.0.x";
25     homepage = "https://libnids.sourceforge.net/";
26     license = licenses.gpl2Only;
27     maintainers = [ maintainers.symphorien ];
28     # probably also bsd and solaris
29     platforms = platforms.linux;
30   };