diff options
Diffstat (limited to 'pkgs/applications/networking/newsreaders/liferea/default.nix')
-rw-r--r-- | pkgs/applications/networking/newsreaders/liferea/default.nix | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/pkgs/applications/networking/newsreaders/liferea/default.nix b/pkgs/applications/networking/newsreaders/liferea/default.nix index de651cab98add..0851d0f30e79e 100644 --- a/pkgs/applications/networking/newsreaders/liferea/default.nix +++ b/pkgs/applications/networking/newsreaders/liferea/default.nix @@ -1,5 +1,6 @@ { lib, stdenv , fetchurl +, fetchpatch , pkg-config , intltool , python3Packages @@ -31,6 +32,16 @@ stdenv.mkDerivation rec { hash = "sha256-7lanrs63N6ZnqxvjcW/+cUZVDqUbML2gftQUc/sLr3Q="; }; + 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 @@ -62,14 +73,9 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - pythonPath = with python3Packages; [ - pygobject3 - pycairo - ]; - - preFixup = '' - buildPythonPath "$out $pythonPath" - gappsWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH") + postFixup = '' + buildPythonPath ${python3Packages.pycairo} + patchPythonScript $out/lib/liferea/plugins/trayicon.py ''; passthru.updateScript = gitUpdater { |