depot/third_party/nixpkgs/pkgs/tools/networking/libnids/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
1.1 KiB
Nix

{ lib, stdenv, fetchzip, libpcap, glib, pkg-config, libnet }:
stdenv.mkDerivation {
pname = "libnids";
version = "1.24";
src = fetchzip {
url = "mirror://sourceforge/libnids/libnids-1.24.tar.gz";
sha256 = "1cblklfdfxcmy0an6xyyzx4l877xdawhjd28daqfsvrh81mb07k1";
};
nativeBuildInputs = [ pkg-config ];
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 (?!?)
*/
env.NIX_CFLAGS_COMPILE = "-Dg_thread_init= ";
meta = with lib; {
description = "E-component of Network Intrusion Detection System which emulates the IP stack of Linux 2.0.x";
homepage = "https://libnids.sourceforge.net/";
license = licenses.gpl2Only;
maintainers = [ maintainers.symphorien ];
# probably also bsd and solaris
platforms = platforms.linux;
};
}