liferea: pull upstream fix for libxml2-2.12 build failure

Without the change `liferea` fails to buil on `staging-next` as:

    ../../src/node_type.h:62:64: error: unknown type name 'xmlNodePtr'; did you mean 'nodePtr'?
       62 |         void            (*export)               (nodePtr node, xmlNodePtr cur, gboolean trusted);
          |                                                                ^~~~~~~~~~
          |                                                                nodePtr

Co-authored-by: José Romildo Malaquias <malaquias@gmail.com>
This commit is contained in:
Sergei Trofimovich 2024-01-01 07:40:13 +00:00
parent e61ae81f8f
commit d519ac780d

View File

@ -1,5 +1,6 @@
{ lib, stdenv
, fetchurl
, fetchpatch
, pkg-config
, intltool
, python3Packages
@ -31,6 +32,16 @@ stdenv.mkDerivation rec {
hash = "sha256-twczHU41xXJvBg4nTQyJrmNCCSoJWAnRLs4DV0uKpjE=";
};
patches = [
# Pull upstream fix for libxml2-2.12 compatibility:
# https://github.com/lwindolf/liferea/pull/1329
(fetchpatch {
name = "libxml2-2.12.patch";
url = "https://github.com/lwindolf/liferea/commit/be8ef494586d9ef73c04ec4ca058a9a158ae3562.patch";
hash = "sha256-K1R7dJMm7ui6QKQqAHCo/ZrLCW3PhPU1EKRPEICtCsQ=";
})
];
nativeBuildInputs = [
wrapGAppsHook
python3Packages.wrapPython