about summary refs log tree commit diff
path: root/pkgs/servers/code-server/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/code-server/default.nix')
-rw-r--r--pkgs/servers/code-server/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/servers/code-server/default.nix b/pkgs/servers/code-server/default.nix
index 5fd0f7867dcd..5662dc5d333b 100644
--- a/pkgs/servers/code-server/default.nix
+++ b/pkgs/servers/code-server/default.nix
@@ -133,9 +133,9 @@ stdenv.mkDerivation (finalAttrs: {
   buildInputs = [
     xorg.libX11
     xorg.libxkbfile
-  ] ++ lib.optionals (!stdenv.isDarwin) [
+  ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
     libsecret
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     AppKit
     Cocoa
     CoreServices
@@ -246,7 +246,7 @@ stdenv.mkDerivation (finalAttrs: {
         xargs -I {} sh -c 'jq -e ".scripts.postinstall" {}/package.json >/dev/null && yarn --cwd {} postinstall --frozen-lockfile --offline || true'
     patchShebangs .
 
-  '' + lib.optionalString stdenv.isDarwin ''
+  '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
     # Use prebuilt binary for @parcel/watcher, which requires macOS SDK 10.13+
     # (see issue #101229).
     pushd ./lib/vscode/remote/node_modules/@parcel/watcher