third_party/nix/pkgs/bazel_8: fix linux-sandbox
Looks like this never actually worked on NixOS due to a
hardcoded /bin/true.
Change-Id: I6a6a6964bf6951592e92bfcd16b309a8d46e123d
Reviewed-on: https://review.monogon.dev/c/monogon/+/4448
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/third_party/nix/pkgs/bazel_8/package.nix b/third_party/nix/pkgs/bazel_8/package.nix
index 7a27697..ab05384 100644
--- a/third_party/nix/pkgs/bazel_8/package.nix
+++ b/third_party/nix/pkgs/bazel_8/package.nix
@@ -221,6 +221,12 @@
usrBinEnv = "${coreutils}/bin/env";
})
+ # TODO: upstream to nixpkgs
+ # Bazel tries to run "/bin/true" to test if linux-sandbox works.
+ (replaceVars ./patches/linux_sandbox.patch {
+ binTrue = "${coreutils}/bin/true";
+ })
+
# Provide default JRE for Bazel process by setting --server_javabase=
# in a new default system bazelrc file
(replaceVars ./patches/bazel_rc.patch {