about summary refs log tree commit diff
path: root/pkgs/development/compilers/rust/binary.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/rust/binary.nix')
-rw-r--r--pkgs/development/compilers/rust/binary.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/development/compilers/rust/binary.nix b/pkgs/development/compilers/rust/binary.nix
index 10e944515df7..6d31f1af55af 100644
--- a/pkgs/development/compilers/rust/binary.nix
+++ b/pkgs/development/compilers/rust/binary.nix
@@ -33,11 +33,11 @@ rec {
       license = [ licenses.mit licenses.asl20 ];
     };
 
-    nativeBuildInputs = lib.optional (!stdenv.isDarwin) autoPatchelfHook;
+    nativeBuildInputs = lib.optional (!stdenv.hostPlatform.isDarwin) autoPatchelfHook;
     buildInputs = [ bash ]
-      ++ lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) gcc.cc.lib
-      ++ lib.optional (!stdenv.isDarwin) zlib
-      ++ lib.optional stdenv.isDarwin Security;
+      ++ lib.optional (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) gcc.cc.lib
+      ++ lib.optional (!stdenv.hostPlatform.isDarwin) zlib
+      ++ lib.optional stdenv.hostPlatform.isDarwin Security;
 
     postPatch = ''
       patchShebangs .
@@ -80,10 +80,10 @@ rec {
     };
 
     nativeBuildInputs = [ makeWrapper ]
-      ++ lib.optional (!stdenv.isDarwin) autoPatchelfHook;
+      ++ lib.optional (!stdenv.hostPlatform.isDarwin) autoPatchelfHook;
     buildInputs = [ bash ]
-      ++ lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) gcc.cc.lib
-      ++ lib.optional stdenv.isDarwin Security;
+      ++ lib.optional (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isFreeBSD) gcc.cc.lib
+      ++ lib.optional stdenv.hostPlatform.isDarwin Security;
 
     postPatch = ''
       patchShebangs .