Skip to content

The agent that grows with you

refactor(nix): stdenv.is* -> stdenv.hostPlatform.is*

ethernet0329638c2bf0
diff --git a/nix/devShell.nix b/nix/devShell.nix
index b38fd139a5a..a67440b7752 100644
--- a/nix/devShell.nix
+++ b/nix/devShell.nix
@@ -31,7 +31,7 @@
]
# Wayland-only: cage and ghostty pull alsa-lib, which does not
# evaluate on darwin.
- ++ lib.optionals pkgs.stdenv.isLinux [
+ ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
# Headless Wayland compositor for E2E tests (test:e2e:visual).
# cage renders a single client with no window management, so
# the Electron window opens at a fixed size without tiling.
diff --git a/nix/hermes-agent.nix b/nix/hermes-agent.nix
index fac6a7be3d7..69a1ca67d72 100644
--- a/nix/hermes-agent.nix
+++ b/nix/hermes-agent.nix
@@ -161,7 +161,7 @@ let
git
openssh
]
- ++ lib.optionals stdenv.isLinux [
+ ++ lib.optionals stdenv.hostPlatform.isLinux [
wl-clipboard
xclip
];
@@ -402,7 +402,7 @@ stdenv.mkDerivation (finalAttrs: {
devVenv
pm
]
- ++ lib.optionals stdenv.isLinux [
+ ++ lib.optionals stdenv.hostPlatform.isLinux [
cage # for running e2e tests without popping windows
];
};
diff --git a/nix/packages.nix b/nix/packages.nix
index 29641fa663a..cbda350dacc 100644
--- a/nix/packages.nix
+++ b/nix/packages.nix
@@ -67,7 +67,7 @@
"voice"
]
# matrix is Linux-only (oqs/liboqs lacks aarch64-darwin wheels).
- ++ lib.optionals pkgs.stdenv.isLinux [ "matrix" ];
+ ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [ "matrix" ];
};
in
{
diff --git a/nix/sandbox.nix b/nix/sandbox.nix
index b9a36a7c063..75248148762 100644
--- a/nix/sandbox.nix
+++ b/nix/sandbox.nix
@@ -70,7 +70,7 @@ in
writeShellApplication {
name = "sandbox";
# darwin's Electron is self-contained, and these libraries are Linux-only.
- text = lib.optionalString stdenv.isLinux ''
+ text = lib.optionalString stdenv.hostPlatform.isLinux ''
export LD_LIBRARY_PATH=${lib.makeLibraryPath electronRuntime}''${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
'' + ''
exec ${../scripts/dev-sandbox.sh} "$@"