1 { lib, stdenv, fetchurl, fetchpatch2, openssl, pkg-config
2 , withPerl ? false, perl
3 , withPython ? false, python3
5 , withCyrus ? true, cyrus_sasl
6 , withUnicode ? true, icu
7 , withZlib ? true, zlib
12 stdenv.mkDerivation rec {
17 url = "https://znc.in/releases/archive/${pname}-${version}.tar.gz";
18 sha256 = "03fyi0j44zcanj1rsdx93hkdskwfvhbywjiwd17f9q1a7yp8l8zz";
23 name = "CVE-2024-39844.patch";
24 url = "https://github.com/znc/znc/commit/8cbf8d628174ddf23da680f3f117dc54da0eb06e.patch";
25 hash = "sha256-JeKirXReiCiNDUS9XodI0oHASg2mPDvQYtV6P4L0mHM=";
29 nativeBuildInputs = [ pkg-config ];
31 buildInputs = [ openssl ]
32 ++ lib.optional withPerl perl
33 ++ lib.optional withPython python3
34 ++ lib.optional withTcl tcl
35 ++ lib.optional withCyrus cyrus_sasl
36 ++ lib.optional withUnicode icu
37 ++ lib.optional withZlib zlib;
40 (lib.enableFeature withPerl "perl")
41 (lib.enableFeature withPython "python")
42 (lib.enableFeature withTcl "tcl")
43 (lib.withFeatureAs withTcl "tcl" "${tcl}/lib")
44 (lib.enableFeature withCyrus "cyrus")
45 ] ++ lib.optionals (!withIPv6) [ "--disable-ipv6" ]
46 ++ lib.optionals withDebug [ "--enable-debug" ];
48 enableParallelBuilding = true;
51 description = "Advanced IRC bouncer";
52 homepage = "https://wiki.znc.in/ZNC";
53 maintainers = with maintainers; [ schneefux lnl7 ];
54 license = licenses.asl20;
55 platforms = platforms.unix;