about summary refs log tree commit diff
path: root/pkgs/tools/system/htop/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/system/htop/default.nix')
-rw-r--r--pkgs/tools/system/htop/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/tools/system/htop/default.nix b/pkgs/tools/system/htop/default.nix
index 55e9b5e9365c..c0a689c4c621 100644
--- a/pkgs/tools/system/htop/default.nix
+++ b/pkgs/tools/system/htop/default.nix
@@ -3,11 +3,11 @@
 , IOKit
 , libcap
 , libnl
-, sensorsSupport ? stdenv.isLinux, lm_sensors
+, sensorsSupport ? stdenv.hostPlatform.isLinux, lm_sensors
 , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
 }:
 
-assert systemdSupport -> stdenv.isLinux;
+assert systemdSupport -> stdenv.hostPlatform.isLinux;
 
 stdenv.mkDerivation rec {
   pname = "htop";
@@ -21,18 +21,18 @@ stdenv.mkDerivation rec {
   };
 
   nativeBuildInputs = [ autoreconfHook ]
-    ++ lib.optional stdenv.isLinux pkg-config
+    ++ lib.optional stdenv.hostPlatform.isLinux pkg-config
   ;
 
   buildInputs = [ ncurses ]
-    ++ lib.optional stdenv.isDarwin IOKit
-    ++ lib.optionals stdenv.isLinux [ libcap libnl ]
+    ++ lib.optional stdenv.hostPlatform.isDarwin IOKit
+    ++ lib.optionals stdenv.hostPlatform.isLinux [ libcap libnl ]
     ++ lib.optional sensorsSupport lm_sensors
     ++ lib.optional systemdSupport systemd
   ;
 
   configureFlags = [ "--enable-unicode" "--sysconfdir=/etc" ]
-    ++ lib.optionals stdenv.isLinux [
+    ++ lib.optionals stdenv.hostPlatform.isLinux [
       "--enable-affinity"
       "--enable-capabilities"
       "--enable-delayacct"