znc: 1.8.2 -> 1.9.1

This commit is contained in:
emaryn
2025-06-04 14:25:56 +08:00
parent 42c18cf406
commit 12322392aa
2 changed files with 28 additions and 11 deletions
+15 -11
View File
@@ -2,7 +2,7 @@
lib,
stdenv,
fetchurl,
fetchpatch2,
cmake,
openssl,
pkg-config,
withPerl ? false,
@@ -23,22 +23,26 @@
stdenv.mkDerivation (finalAttrs: {
pname = "znc";
version = "1.8.2";
version = "1.9.1";
src = fetchurl {
url = "https://znc.in/releases/archive/znc-${finalAttrs.version}.tar.gz";
sha256 = "03fyi0j44zcanj1rsdx93hkdskwfvhbywjiwd17f9q1a7yp8l8zz";
hash = "sha256-6KfPgOGarVELTigur2G1a8MN+I6i4PZPrc3TA8SJTzw=";
};
patches = [
(fetchpatch2 {
name = "CVE-2024-39844.patch";
url = "https://github.com/znc/znc/commit/8cbf8d628174ddf23da680f3f117dc54da0eb06e.patch";
hash = "sha256-JeKirXReiCiNDUS9XodI0oHASg2mPDvQYtV6P4L0mHM=";
})
];
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 = [ pkg-config ];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs =
[ openssl ]
@@ -3,6 +3,10 @@
stdenv,
fetchFromGitHub,
znc,
cmake,
pkg-config,
python3,
which,
}:
let
@@ -32,6 +36,15 @@ let
// {
inherit buildPhase installPhase;
nativeBuildInputs = [
python3
which
cmake
pkg-config
];
dontUseCmakeConfigure = true;
buildInputs = znc.buildInputs;
passthru.module_name = module_name;