znc: add configure options (#48683)
* znc: add option to disable IPv6 * znc: add option to enable debugging * znc: add option to enable zlib support * zncModules: match znc build inputs znc-buildmod expects modules to be aware of the same libs znc itself is linked to. Before this: znc-buildmod was passing -lz but zlib was not in the include path
This commit is contained in:
parent
59cd6234d4
commit
69fb8a811a
@ -4,6 +4,9 @@
|
|||||||
, withTcl ? false, tcl
|
, withTcl ? false, tcl
|
||||||
, withCyrus ? true, cyrus_sasl
|
, withCyrus ? true, cyrus_sasl
|
||||||
, withUnicode ? true, icu
|
, withUnicode ? true, icu
|
||||||
|
, withZlib ? true, zlib
|
||||||
|
, withIPv6 ? true
|
||||||
|
, withDebug ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -24,7 +27,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ optional withPython python3
|
++ optional withPython python3
|
||||||
++ optional withTcl tcl
|
++ optional withTcl tcl
|
||||||
++ optional withCyrus cyrus_sasl
|
++ optional withCyrus cyrus_sasl
|
||||||
++ optional withUnicode icu;
|
++ optional withUnicode icu
|
||||||
|
++ optional withZlib zlib;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
(stdenv.lib.enableFeature withPerl "perl")
|
(stdenv.lib.enableFeature withPerl "perl")
|
||||||
@ -32,7 +36,8 @@ stdenv.mkDerivation rec {
|
|||||||
(stdenv.lib.enableFeature withTcl "tcl")
|
(stdenv.lib.enableFeature withTcl "tcl")
|
||||||
(stdenv.lib.withFeatureAs withTcl "tcl" "${tcl}/lib")
|
(stdenv.lib.withFeatureAs withTcl "tcl" "${tcl}/lib")
|
||||||
(stdenv.lib.enableFeature withCyrus "cyrus")
|
(stdenv.lib.enableFeature withCyrus "cyrus")
|
||||||
];
|
] ++ optional (!withIPv6) [ "--disable-ipv6" ]
|
||||||
|
++ optional withDebug [ "--enable-debug" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Advanced IRC bouncer";
|
description = "Advanced IRC bouncer";
|
||||||
|
@ -9,6 +9,8 @@ let
|
|||||||
inherit buildPhase;
|
inherit buildPhase;
|
||||||
inherit installPhase;
|
inherit installPhase;
|
||||||
|
|
||||||
|
buildInputs = znc.buildInputs;
|
||||||
|
|
||||||
meta = a.meta // { platforms = stdenv.lib.platforms.unix; };
|
meta = a.meta // { platforms = stdenv.lib.platforms.unix; };
|
||||||
passthru.module_name = module_name;
|
passthru.module_name = module_name;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user