24 stdenv.mkDerivation rec {
29 url = "https://znc.in/releases/archive/${pname}-${version}.tar.gz";
30 sha256 = "03fyi0j44zcanj1rsdx93hkdskwfvhbywjiwd17f9q1a7yp8l8zz";
35 name = "CVE-2024-39844.patch";
36 url = "https://github.com/znc/znc/commit/8cbf8d628174ddf23da680f3f117dc54da0eb06e.patch";
37 hash = "sha256-JeKirXReiCiNDUS9XodI0oHASg2mPDvQYtV6P4L0mHM=";
41 nativeBuildInputs = [ pkg-config ];
45 ++ lib.optional withPerl perl
46 ++ lib.optional withPython python3
47 ++ lib.optional withTcl tcl
48 ++ lib.optional withCyrus cyrus_sasl
49 ++ lib.optional withUnicode icu
50 ++ lib.optional withZlib zlib;
54 (lib.enableFeature withPerl "perl")
55 (lib.enableFeature withPython "python")
56 (lib.enableFeature withTcl "tcl")
57 (lib.withFeatureAs withTcl "tcl" "${tcl}/lib")
58 (lib.enableFeature withCyrus "cyrus")
60 ++ lib.optionals (!withIPv6) [ "--disable-ipv6" ]
61 ++ lib.optionals withDebug [ "--enable-debug" ];
63 enableParallelBuilding = true;
66 description = "Advanced IRC bouncer";
67 homepage = "https://wiki.znc.in/ZNC";
68 maintainers = with maintainers; [
72 license = licenses.asl20;
73 platforms = platforms.unix;