xmlcopyeditor: fix build with libxml2 2.12

This commit is contained in:
Weijia Wang 2023-12-13 09:59:15 +01:00
parent 1a5412e140
commit 7bd712b1de

View File

@ -25,6 +25,13 @@ stdenv.mkDerivation rec {
patches = [ ./xmlcopyeditor.patch ];
# 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 "xmlErrorPtr err" "const xmlError *err"
'';
nativeBuildInputs = [
intltool
pkg-config