diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-12-13 09:59:15 +0100 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-12-13 09:59:15 +0100 |
commit | 7bd712b1de14a699651f1d7f8a953ef5627ca67d (patch) | |
tree | 081e7e3447b9bf717d57eb36d5d7875d46b8b1f5 | |
parent | 1a5412e14030d2a00281021d5f8ef05b31027912 (diff) |
xmlcopyeditor: fix build with libxml2 2.12
-rw-r--r-- | pkgs/applications/editors/xmlcopyeditor/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/editors/xmlcopyeditor/default.nix b/pkgs/applications/editors/xmlcopyeditor/default.nix index 7d75bdce82eff..857b61521b552 100644 --- a/pkgs/applications/editors/xmlcopyeditor/default.nix +++ b/pkgs/applications/editors/xmlcopyeditor/default.nix @@ -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 |