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:
parent
8409bdf80a
commit
e6c940c1cc
@ -87,8 +87,8 @@
|
|||||||
smartmontools
|
smartmontools
|
||||||
systemd
|
systemd
|
||||||
utillinux
|
utillinux
|
||||||
x86_energy_perf_policy
|
|
||||||
] ++ lib.optional enableRDW networkmanager
|
] ++ lib.optional enableRDW networkmanager
|
||||||
|
++ lib.optional (lib.any (lib.meta.platformMatch stdenv.hostPlatform) x86_energy_perf_policy.meta.platforms) x86_energy_perf_policy
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user