about summary refs log tree commit diff
path: root/pkgs/by-name/ar/arduino-cli/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ar/arduino-cli/package.nix')
-rw-r--r--pkgs/by-name/ar/arduino-cli/package.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/by-name/ar/arduino-cli/package.nix b/pkgs/by-name/ar/arduino-cli/package.nix
index 8d01ae38e3ec..4eb9cabebac8 100644
--- a/pkgs/by-name/ar/arduino-cli/package.nix
+++ b/pkgs/by-name/ar/arduino-cli/package.nix
@@ -47,7 +47,7 @@ let
           --replace-fail "go test" "go test -p $NIX_BUILD_CORES -skip '(${lib.concatStringsSep "|" skipTests})'"
       '';
 
-    doCheck = stdenv.isLinux;
+    doCheck = stdenv.hostPlatform.isLinux;
 
     checkPhase = ''
       runHook preCheck
@@ -60,7 +60,7 @@ let
       "-w"
       "-X github.com/arduino/arduino-cli/version.versionString=${version}"
       "-X github.com/arduino/arduino-cli/version.commit=unknown"
-    ] ++ lib.optionals stdenv.isLinux [ "-extldflags '-static'" ];
+    ] ++ lib.optionals stdenv.hostPlatform.isLinux [ "-extldflags '-static'" ];
 
     postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
       export HOME="$(mktemp -d)"
@@ -89,7 +89,7 @@ let
   };
 
 in
-if stdenv.isLinux then
+if stdenv.hostPlatform.isLinux then
   # buildFHSEnv is needed because the arduino-cli downloads compiler
   # toolchains from the internet that have their interpreters pointed at
   # /lib64/ld-linux-x86-64.so.2