about summary refs log tree commit diff
path: root/pkgs/tools/misc/watchexec/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/watchexec/default.nix')
-rw-r--r--pkgs/tools/misc/watchexec/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/misc/watchexec/default.nix b/pkgs/tools/misc/watchexec/default.nix
index cd7381243cc47..0d04a21219bc5 100644
--- a/pkgs/tools/misc/watchexec/default.nix
+++ b/pkgs/tools/misc/watchexec/default.nix
@@ -15,9 +15,9 @@ rustPlatform.buildRustPackage rec {
 
   nativeBuildInputs = [ installShellFiles ];
 
-  buildInputs = lib.optionals stdenv.isDarwin [ Cocoa AppKit ];
+  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa AppKit ];
 
-  NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework AppKit";
+  NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-framework AppKit";
 
   checkFlags = [ "--skip=help" "--skip=help_short" ];