Merge pull request #101471 from aquarial/master

redshift-plasma-applet: add patch for compatibility with redshift 1.12 update

authored by

Timo Kaufmann and committed by
GitHub
ea05036c a50f89a0

+12 -1
+12 -1
pkgs/applications/misc/redshift-plasma-applet/default.nix
··· 1 - { lib, stdenv, cmake, extra-cmake-modules, plasma-framework, kwindowsystem, redshift, fetchFromGitHub, }: 1 + { lib, stdenv, cmake, extra-cmake-modules, plasma-framework, kwindowsystem, redshift, fetchFromGitHub, fetchpatch, }: 2 2 3 3 let version = "1.0.18"; in 4 4 ··· 12 12 rev = "v${version}"; 13 13 sha256 = "122nnbafa596rxdxlfshxk45lzch8c9342bzj7kzrsjkjg0xr9pq"; 14 14 }; 15 + 16 + patches = [ 17 + # This patch fetches from out-of-source repo because the GitHub copy is frozen, 18 + # the active fork is now on invent.kde.org. Remove this patch when a new version is released and src is updated 19 + # Redshift version >= 1.12 requires the -P option to clear the existing effects before applying shading. 20 + # Without it scrolling makes the screen gets darker and darker until it is impossible to see anything. 21 + (fetchpatch { 22 + url = "https://invent.kde.org/plasma/plasma-redshift-control/-/commit/898c3a4cfc6c317915f1e664078d8606497c4049.patch"; 23 + sha256 = "0b6pa3fcj698mgqnc85jbbmcl3qpf418mh06qgsd3c4v237my0nv"; 24 + }) 25 + ]; 15 26 16 27 patchPhase = '' 17 28 substituteInPlace package/contents/ui/main.qml \