Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
86 lines
2.2 KiB
Nix
86 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
cmake,
|
|
openssl,
|
|
pkg-config,
|
|
withPerl ? false,
|
|
perl,
|
|
withPython ? false,
|
|
python3,
|
|
withTcl ? false,
|
|
tcl,
|
|
withCyrus ? true,
|
|
cyrus_sasl,
|
|
withUnicode ? true,
|
|
icu,
|
|
withZlib ? true,
|
|
zlib,
|
|
withIPv6 ? true,
|
|
withDebug ? false,
|
|
testers,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "znc";
|
|
version = "1.10.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://znc.in/releases/archive/znc-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-Tm52hR2/JgYYWXK1PsXeytaP5TtjpW5N+LizwKbEaAA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace znc.pc.cmake.in \
|
|
--replace-fail 'bindir=''${exec_prefix}/@CMAKE_INSTALL_BINDIR@' "bindir=@CMAKE_INSTALL_FULL_BINDIR@" \
|
|
--replace-fail 'libdir=''${prefix}/@CMAKE_INSTALL_LIBDIR@' "libdir=@CMAKE_INSTALL_FULL_LIBDIR@" \
|
|
--replace-fail 'datadir=''${prefix}/@CMAKE_INSTALL_DATADIR@' "datadir=@CMAKE_INSTALL_FULL_DATADIR@" \
|
|
--replace-fail 'includedir=''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@' "includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@" \
|
|
--replace-fail 'datarootdir=''${prefix}/@CMAKE_INSTALL_DATAROOTDIR@' "datarootdir=@CMAKE_INSTALL_FULL_DATAROOTDIR@"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
]
|
|
++ lib.optional withPerl perl
|
|
++ lib.optional withPython python3
|
|
++ lib.optional withTcl tcl
|
|
++ lib.optional withCyrus cyrus_sasl
|
|
++ lib.optional withUnicode icu
|
|
++ lib.optional withZlib zlib;
|
|
|
|
configureFlags = [
|
|
(lib.enableFeature withPerl "perl")
|
|
(lib.enableFeature withPython "python")
|
|
(lib.enableFeature withTcl "tcl")
|
|
(lib.withFeatureAs withTcl "tcl" "${tcl}/lib")
|
|
(lib.enableFeature withCyrus "cyrus")
|
|
]
|
|
++ lib.optionals (!withIPv6) [ "--disable-ipv6" ]
|
|
++ lib.optionals withDebug [ "--enable-debug" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru = {
|
|
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
};
|
|
|
|
meta = {
|
|
description = "Advanced IRC bouncer";
|
|
homepage = "https://wiki.znc.in/ZNC";
|
|
maintainers = with lib.maintainers; [
|
|
schneefux
|
|
lnl7
|
|
];
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.unix;
|
|
pkgConfigModules = [ "znc" ];
|
|
};
|
|
})
|