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