libgsf: fix build with libxml2 2.13

This commit is contained in:
Randy Eckenrode 2024-07-19 08:01:06 -04:00
parent 637b531dcf
commit 3c99873695
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -2,6 +2,7 @@
, lib
, stdenv
, autoreconfHook
, fetchpatch2
, gtk-doc
, pkg-config
, intltool
@ -31,6 +32,14 @@ stdenv.mkDerivation rec {
hash = "sha256-uSi2/pZiST07YutU8SHNoY2LifEQhohQeyaH9spyG2s=";
};
patches = [
# Fixes building when nanohttp is not enabled in libxml2, which is the default since libxml2 2.13.
(fetchpatch2 {
url = "https://gitlab.gnome.org/GNOME/libgsf/-/commit/5d4bb55095d3d6ef793c1908a88504183e28644c.diff";
hash = "sha256-2TF1KDUxJtSMTDze2/dOJQRkW8S1GA9OyFpYzYeKpjQ=";
})
];
postPatch = ''
# Fix cross-compilation
substituteInPlace configure.ac \