From 3f07775c0ef7d0c3ce5506e299600185f4487f85 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Sat, 22 Aug 2026 12:11:39 +0200 Subject: [PATCH] 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: https://github.com/intel/thermal_daemon/commit/de4821ce559a2041f6a5d574aeca278df340e379 --- pkgs/by-name/th/thermald/package.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/by-name/th/thermald/package.nix b/pkgs/by-name/th/thermald/package.nix index d648a7f4d7aa..97c310a20de8 100644 --- a/pkgs/by-name/th/thermald/package.nix +++ b/pkgs/by-name/th/thermald/package.nix @@ -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