about summary refs log tree commit diff
path: root/pkgs/servers/openvscode-server/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/openvscode-server/default.nix')
-rw-r--r--pkgs/servers/openvscode-server/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/servers/openvscode-server/default.nix b/pkgs/servers/openvscode-server/default.nix
index bc1e7a3f5e18..f21693591672 100644
--- a/pkgs/servers/openvscode-server/default.nix
+++ b/pkgs/servers/openvscode-server/default.nix
@@ -103,9 +103,9 @@ stdenv.mkDerivation (finalAttrs: {
     moreutils
   ];
 
-  buildInputs = lib.optionals (!stdenv.isDarwin) [ libsecret ]
+  buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [ libsecret ]
     ++ (with xorg; [ libX11 libxkbfile libkrb5 ])
-    ++ lib.optionals stdenv.isDarwin [
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [
     AppKit
     Cocoa
     Security
@@ -181,7 +181,7 @@ stdenv.mkDerivation (finalAttrs: {
     find -path "*@vscode/ripgrep" -type d \
       -execdir mkdir -p {}/bin \; \
       -execdir ln -s ${ripgrep}/bin/rg {}/bin/rg \;
-  '' + 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 ./remote/node_modules/@parcel/watcher