diff options
author | Florian Klink <flokli@flokli.de> | 2024-10-27T12·19+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-10-27T14·29+0000 |
commit | 057e4e3a997426434a8c511d237a6653c4927530 (patch) | |
tree | fe4bb3c32be433c4c1f922a810e8692eb47a435b /tvix/utils.nix | |
parent | 4c90f723d870822d26a4852606d86837d8024d9e (diff) |
fix(tvix/shell): fix shell on MacOS r/8866
runc is not available on MacOS, we only want to include it in the shell if on Linux. Point TVIX_BUILD_SANDBOX_SHELL to /bin/sh if not on Linux. While we cannot use the OCI/runc executor on MacOS, other implementations might make use of this env var, so it's good to keep setting it. Also update the other occurence of it, in tvix/utils.nix. Change-Id: If7b47e1bb7c41bbde84c93016713754a252c4355 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12691 Autosubmit: flokli <flokli@flokli.de> Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/utils.nix')
-rw-r--r-- | tvix/utils.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/utils.nix b/tvix/utils.nix index 4a1fe4327029..f140728cad19 100644 --- a/tvix/utils.nix +++ b/tvix/utils.nix @@ -79,7 +79,7 @@ PROTO_ROOT = depot.tvix.build.protos.protos; nativeBuildInputs = [ pkgs.protobuf ]; buildInputs = lib.optional pkgs.stdenv.isDarwin commonDarwinDeps; - TVIX_BUILD_SANDBOX_SHELL = "${pkgs.pkgsStatic.busybox}/bin/sh"; + TVIX_BUILD_SANDBOX_SHELL = if pkgs.stdenv.isLinux then pkgs.pkgsStatic.busybox + "/bin/sh" else "/bin/sh"; }; tvix-castore = prev: { |