2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchzip, libpcap, glib, pkg-config, libnet }:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "libnids";
|
|
|
|
version = "1.24";
|
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://sourceforge/libnids/libnids-1.24.tar.gz";
|
|
|
|
sha256 = "1cblklfdfxcmy0an6xyyzx4l877xdawhjd28daqfsvrh81mb07k1";
|
|
|
|
};
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
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 (?!?)
|
|
|
|
*/
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Dg_thread_init= ";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An E-component of Network Intrusion Detection System which emulates the IP stack of Linux 2.0.x";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://libnids.sourceforge.net/";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.symphorien ];
|
|
|
|
# probably also bsd and solaris
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|