about summary refs log tree commit diff
path: root/pkgs/desktops
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2024-06-09 00:06:16 +0800
committerBobby Rong <rjl931189261@126.com>2024-06-09 00:06:16 +0800
commitcf3f4e54a085506e2a0aa26da7c3de2d6eac69d8 (patch)
tree0d3b92fe15c88a8b8f97afbca8ec78c6f735e085 /pkgs/desktops
parent1d68a6ff89dbdb0e5e6b1cd98b148122cf861bd1 (diff)
xfce.xfce4-sensors-plugin: Only build nvidiaSupport when libXNVCtrl is available
Only x86_64-linux and aarch64-linux right now.
Diffstat (limited to 'pkgs/desktops')
-rw-r--r--pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin/default.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin/default.nix
index 07445ffb1c992..43896afa4f15f 100644
--- a/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin/default.nix
+++ b/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin/default.nix
@@ -12,8 +12,8 @@
   lm_sensors,
   hddtemp,
   netcat-gnu,
-  nvidiaSupport ? true,
   libXNVCtrl,
+  nvidiaSupport ? lib.meta.availableOn stdenv.hostPlatform libXNVCtrl,
   gitUpdater,
 }: