osinfo-db-tools: Fix build with libxml2 2.12

This commit is contained in:
Jan Tojnar 2023-12-02 19:27:10 +01:00
parent 98195b2d2d
commit e4e06adb65

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
, pkg-config
, meson
, ninja
@ -26,6 +27,18 @@ stdenv.mkDerivation rec {
sha256 = "sha256-i6bTG7XvBwVuOIeeBwZxr7z+wOtBqH+ZUEULu4MbCh0=";
};
patches = [
# Fix build with libxml 2.12
(fetchpatch {
url = "https://gitlab.com/libosinfo/osinfo-db-tools/-/commit/019487cbc79925e49988789bf533c78dab7e1842.patch";
hash = "sha256-skuspjHDRilwym+hFInrSvIZ+rrzBOoI7WeFj2SrGkc=";
})
(fetchpatch {
url = "https://gitlab.com/libosinfo/osinfo-db-tools/-/commit/34378a4ac257f2f5fcf364786d1634a8c36b304f.patch";
hash = "sha256-I9vRRbnotqRi8+7q1eZLJwQLaT9J4G3h+3rKxlaCME4=";
})
];
nativeBuildInputs = [
meson
ninja