@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchurl, zlib, xz, python, findXMLCatalogs, libiconv
1+{ stdenv, lib, fetchurl, zlib, xz, python, findXMLCatalogs, libiconv, fetchpatch
22, supportPython ? (! stdenv ? cross) }:
33
44stdenv.mkDerivation rec {
@@ -10,6 +10,13 @@ stdenv.mkDerivation rec {
1010 sha256 = "0g336cr0bw6dax1q48bblphmchgihx9p1pjmxdnrd6sh3qci3fgz";
1111 };
1212
13+ # https://bugzilla.gnome.org/show_bug.cgi?id=766834#c5
14+ postPatch = "patch -R < " + fetchpatch {
15+ name = "schemas-validity.patch";
16+ url = "https://git.gnome.org/browse/libxml2/patch/?id=f6599c5164";
17+ sha256 = "0i7a0nhxwkxx6dkm8917qn0bsfn1av6ghg2f4dxanxi4bn4b1jjn";
18+ };
19+
1320 outputs = [ "dev" "out" "bin" "doc" ]
1421 ++ lib.optional supportPython "py";
1522 propagatedBuildOutputs = "out bin" + lib.optionalString supportPython " py";