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.
commite6c940c1cc4af7b859bb7281ce8d029c98ca800e
authorJake Waksbaum <jake.waksbaum@gmail.com>
dateThu 24 Sep 2020, 02:13 (6 years ago)
parent8409bdf
pkgs/tools/misc/tlp/default.nix+1−1
@@ -87,8 +87,8 @@
8787 smartmontools
8888 systemd
8989 utillinux
90− x86_energy_perf_policy
9190 ] ++ lib.optional enableRDW networkmanager
91+ ++ lib.optional (lib.any (lib.meta.platformMatch stdenv.hostPlatform) x86_energy_perf_policy.meta.platforms) x86_energy_perf_policy
9292 );
9393 in
9494 ''