about summary refs log tree commit diff
path: root/pkgs/by-name/ze/zerotierone/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ze/zerotierone/package.nix')
-rw-r--r--pkgs/by-name/ze/zerotierone/package.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/by-name/ze/zerotierone/package.nix b/pkgs/by-name/ze/zerotierone/package.nix
index eb09f58e888a..3252cce49d60 100644
--- a/pkgs/by-name/ze/zerotierone/package.nix
+++ b/pkgs/by-name/ze/zerotierone/package.nix
@@ -77,7 +77,7 @@ in stdenv.mkDerivation {
     lzo
     openssl
     zlib
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     libiconv
     darwin.apple_sdk.frameworks.SystemConfiguration
     darwin.apple_sdk.frameworks.CoreServices
@@ -88,7 +88,7 @@ in stdenv.mkDerivation {
   # Ensure Rust compiles for the right target
   env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTarget;
 
-  preBuild = if stdenv.isDarwin then ''
+  preBuild = if stdenv.hostPlatform.isDarwin then ''
     makeFlagsArray+=("ARCH_FLAGS=") # disable multi-arch build
     if ! grep -q MACOS_VERSION_MIN=10.13 make-mac.mk; then
       echo "You may need to update MACOSX_DEPLOYMENT_TARGET to match the value in make-mac.mk"
@@ -115,7 +115,7 @@ in stdenv.mkDerivation {
 
   buildFlags = [ "all" "selftest" ];
 
-  doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
+  doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
   checkPhase = ''
     runHook preCheck
     ./zerotier-selftest