Unverified Commit 977b670f authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

xmlcopyeditor: fix build with libxml2 2.14 (#424381)

parents c902b9f5 3ee23e40
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -27,9 +27,15 @@ stdenv.mkDerivation (finalAttrs: {

  # error: cannot initialize a variable of type 'xmlErrorPtr' (aka '_xmlError *')
  #        with an rvalue of type 'const xmlError *' (aka 'const _xmlError *')
  postPatch = ''
  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 = [