From e6c940c1cc4af7b859bb7281ce8d029c98ca800e Mon Sep 17 00:00:00 2001 From: Jake Waksbaum Date: Thu, 24 Sep 2020 02:13:34 -0400 Subject: [PATCH] tlp: Add support for non-x86 platforms Before this commit, tlp won't build because it depends on x86_energy_perf_policy which is only available on x86. This commit only relies on x86_energy_perf_policy on systems where it is available, allowing tlp to build on other systems like aarch64-linux. --- pkgs/tools/misc/tlp/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/misc/tlp/default.nix b/pkgs/tools/misc/tlp/default.nix index 5a467dd626d..a32e941ad84 100644 --- a/pkgs/tools/misc/tlp/default.nix +++ b/pkgs/tools/misc/tlp/default.nix @@ -87,8 +87,8 @@ smartmontools systemd utillinux - x86_energy_perf_policy ] ++ lib.optional enableRDW networkmanager + ++ lib.optional (lib.any (lib.meta.platformMatch stdenv.hostPlatform) x86_energy_perf_policy.meta.platforms) x86_energy_perf_policy ); in ''