From 3ee23e403ba5d37124f85166438581bb8bb27456 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 11 Jul 2025 13:30:30 -0500 Subject: [PATCH] xmlcopyeditor: fix build with libxml2 2.14 --- pkgs/by-name/xm/xmlcopyeditor/package.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/xm/xmlcopyeditor/package.nix b/pkgs/by-name/xm/xmlcopyeditor/package.nix index 6e614460b8b6..345fcd776e9a 100644 --- a/pkgs/by-name/xm/xmlcopyeditor/package.nix +++ b/pkgs/by-name/xm/xmlcopyeditor/package.nix @@ -27,10 +27,16 @@ stdenv.mkDerivation (finalAttrs: { # error: cannot initialize a variable of type 'xmlErrorPtr' (aka '_xmlError *') # with an rvalue of type 'const xmlError *' (aka 'const _xmlError *') - postPatch = '' - substituteInPlace src/wraplibxml.cpp \ - --replace-fail "xmlErrorPtr err" "const xmlError *err" - ''; + postPatch = + '' + substituteInPlace src/wraplibxml.cpp \ + --replace-fail "xmlErrorPtr err" "const xmlError *err" + '' + # error: invalid type argument of unary '*' (have 'long int') + + '' + substituteInPlace src/wraplibxml.cpp \ + --replace-fail "initGenericErrorDefaultFunc ( NULL )" "xmlSetGenericErrorFunc( nullptr , nullptr )" + ''; nativeBuildInputs = [ intltool