about summary refs log tree commit diff
path: root/pkgs/tools/misc/topgrade/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/topgrade/default.nix')
-rw-r--r--pkgs/tools/misc/topgrade/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/misc/topgrade/default.nix b/pkgs/tools/misc/topgrade/default.nix
index 38e1f0d95c1a..70402b22df7f 100644
--- a/pkgs/tools/misc/topgrade/default.nix
+++ b/pkgs/tools/misc/topgrade/default.nix
@@ -25,13 +25,13 @@ rustPlatform.buildRustPackage rec {
     installShellFiles
   ];
 
-  buildInputs = lib.optionals stdenv.isDarwin [
+  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
     AppKit
     Cocoa
     Foundation
   ];
 
-  env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [
+  env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.isDarwin [
     "-framework"
     "AppKit"
   ]);