about summary refs log tree commit diff
path: root/pkgs/by-name/ca/cargo-wasi/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ca/cargo-wasi/package.nix')
-rw-r--r--pkgs/by-name/ca/cargo-wasi/package.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/by-name/ca/cargo-wasi/package.nix b/pkgs/by-name/ca/cargo-wasi/package.nix
index b0fe56c9fb69..a42b98da2054 100644
--- a/pkgs/by-name/ca/cargo-wasi/package.nix
+++ b/pkgs/by-name/ca/cargo-wasi/package.nix
@@ -21,8 +21,8 @@ rustPlatform.buildRustPackage rec {
 
   nativeBuildInputs = [ pkg-config ];
 
-  buildInputs = lib.optionals stdenv.isLinux [ openssl ]
-    ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security ]);
+  buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ Security ]);
 
   # Checks need to be disabled here because the current test suite makes assumptions
   # about the surrounding environment that aren't Nix friendly. See these lines for specifics: