2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, withPerl ? false, perl
|
|
|
|
, withPython ? false, python3
|
|
|
|
, withTcl ? false, tcl
|
|
|
|
, withCyrus ? true, cyrus_sasl
|
|
|
|
, withUnicode ? true, icu
|
|
|
|
, withZlib ? true, zlib
|
|
|
|
, withIPv6 ? true
|
|
|
|
, withDebug ? false
|
|
|
|
}:
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "znc";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "1.8.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://znc.in/releases/archive/${pname}-${version}.tar.gz";
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "03fyi0j44zcanj1rsdx93hkdskwfvhbywjiwd17f9q1a7yp8l8zz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ optional withPerl perl
|
|
|
|
++ optional withPython python3
|
|
|
|
++ optional withTcl tcl
|
|
|
|
++ optional withCyrus cyrus_sasl
|
|
|
|
++ optional withUnicode icu
|
|
|
|
++ optional withZlib zlib;
|
|
|
|
|
|
|
|
configureFlags = [
|
2021-01-17 00:15:33 +00:00
|
|
|
(lib.enableFeature withPerl "perl")
|
|
|
|
(lib.enableFeature withPython "python")
|
|
|
|
(lib.enableFeature withTcl "tcl")
|
|
|
|
(lib.withFeatureAs withTcl "tcl" "${tcl}/lib")
|
|
|
|
(lib.enableFeature withCyrus "cyrus")
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ optional (!withIPv6) [ "--disable-ipv6" ]
|
|
|
|
++ optional withDebug [ "--enable-debug" ];
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Advanced IRC bouncer";
|
|
|
|
homepage = "https://wiki.znc.in/ZNC";
|
|
|
|
maintainers = with maintainers; [ schneefux lnl7 ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|