about summary refs log tree commit diff
path: root/pkgs/development/tools/jless/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/jless/default.nix')
-rw-r--r--pkgs/development/tools/jless/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/tools/jless/default.nix b/pkgs/development/tools/jless/default.nix
index e704ec994eed..0aba5e3f23f1 100644
--- a/pkgs/development/tools/jless/default.nix
+++ b/pkgs/development/tools/jless/default.nix
@@ -13,11 +13,11 @@ rustPlatform.buildRustPackage rec {
 
   cargoHash = "sha256-sas94liAOSIirIJGdexdApXic2gWIBDT4uJFRM3qMw0=";
 
-  nativeBuildInputs = lib.optionals stdenv.isLinux [ python3 ];
+  nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ python3 ];
 
   buildInputs = [ ]
-    ++ lib.optionals stdenv.isDarwin [ AppKit ]
-    ++ lib.optionals stdenv.isLinux [ libxcb ];
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit ]
+    ++ lib.optionals stdenv.hostPlatform.isLinux [ libxcb ];
 
   meta = with lib; {
     description = "Command-line pager for JSON data";