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.
This commit is contained in:
Jake Waksbaum 2020-09-24 02:13:34 -04:00
parent 8409bdf80a
commit e6c940c1cc

View file

@ -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
''