thermald: patch error on non-mobile platforms

See https://github.com/intel/thermal_daemon/issues/589

This adds the backport of the commit that fixes it on the master branch:

de4821ce55
This commit is contained in:
pancho horrillo
2026-08-22 12:11:39 +02:00
parent ffb3c9b700
commit 3f07775c0e

View File

@@ -7,6 +7,7 @@
docbook_xml_dtd_412,
docbook-xsl-nons,
fetchFromGitHub,
fetchpatch,
gtk-doc,
libevdev,
libtool,
@@ -33,6 +34,20 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "sha256-pppza3HVKl27K/dM4G5h9095N9Fw4a/7FZD95/2Llu8=";
};
patches = [
# Fix "[ERR]Non mobile platform, exiting.." issue.
# https://github.com/intel/thermal_daemon/issues/589
# (Will be included in the next release).
#
# NOTES:
# - https://github.com/NixOS/nixos-hardware/issues/208
(fetchpatch {
name = "demote-fatal-error-to-warning-for-non-mobile-platform.patch";
url = "https://github.com/panchoh/thermal_daemon/commit/7f2a5d09010c1ffa9ce53c4fe0e673bcc504ea67.patch";
hash = "sha256-XQM6OfIg/2SZxhxB/NrCUEiWxBl/AtI4Y/jdcXBVoJM=";
})
];
nativeBuildInputs = [
autoconf
autoconf-archive