diff options
author | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2018-12-03 00:57:52 +0100 |
---|---|---|
committer | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2018-12-03 00:57:52 +0100 |
commit | 6c22b5a1d786c4c2fdf009b87c83bb078237098b (patch) | |
tree | 2c12e63e69fad86db1aec97e58619ded5955672a /pkgs/tools/networking/libnids | |
parent | 7041972128a5192640fada3abe38b4ae1cf8b99c (diff) | |
download | nixlib-6c22b5a1d786c4c2fdf009b87c83bb078237098b.tar nixlib-6c22b5a1d786c4c2fdf009b87c83bb078237098b.tar.gz nixlib-6c22b5a1d786c4c2fdf009b87c83bb078237098b.tar.bz2 nixlib-6c22b5a1d786c4c2fdf009b87c83bb078237098b.tar.lz nixlib-6c22b5a1d786c4c2fdf009b87c83bb078237098b.tar.xz nixlib-6c22b5a1d786c4c2fdf009b87c83bb078237098b.tar.zst nixlib-6c22b5a1d786c4c2fdf009b87c83bb078237098b.zip |
libnids: init at 1.24
Diffstat (limited to 'pkgs/tools/networking/libnids')
-rw-r--r-- | pkgs/tools/networking/libnids/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/networking/libnids/default.nix b/pkgs/tools/networking/libnids/default.nix new file mode 100644 index 000000000000..ef753127c67e --- /dev/null +++ b/pkgs/tools/networking/libnids/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchzip, libpcap, glib, pkgconfig, libnet }: +stdenv.mkDerivation { + pname = "libnids"; + version = "1.24"; + src = fetchzip { + url = "mirror://sourceforge/libnids/libnids-1.24.tar.gz"; + sha256 = "1cblklfdfxcmy0an6xyyzx4l877xdawhjd28daqfsvrh81mb07k1"; + }; + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ libpcap glib libnet ]; + + /* + Quoting the documentation of glib: g_thread_init has been deprecated since + version 2.32 and should not be used in newly-written code. This function is + no longer necessary. The GLib threading system is automatically initialized + at the start of your program. + + this is necessary for dsniff to compile; otherwise g_thread_init is a missing + symbol when linking (?!?) + */ + NIX_CFLAGS_COMPILE="-Dg_thread_init= "; + + meta = with stdenv.lib; { + description = "An E-component of Network Intrusion Detection System which emulates the IP stack of Linux 2.0.x"; + homepage = http://libnids.sourceforge.net/; + license = licenses.gpl2; + maintainers = [ maintainers.symphorien ]; + # probably also bsd and solaris + platforms = platforms.linux; + }; +} |