treewide: remove FHSEnv
To remove the FHSenv, we have to patch rules_python to use
/usr/bin/env to resolve the path to bash instead of hardcoding it.
Additionally, we now bring a Nix-compatible Bazel 8.
Change-Id: Id51e7748eea6dd77185f43a52fe45b5110ba4a2b
Reviewed-on: https://review.monogon.dev/c/monogon/+/4427
Tested-by: Jenkins CI
Reviewed-by: Jan Schär <jan@monogon.tech>
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/tools/bazel b/tools/bazel
index 78e4624..0f235c3 100755
--- a/tools/bazel
+++ b/tools/bazel
@@ -34,9 +34,8 @@
# Jump to project root since bwrap hangs if we aren't there
cd "${DIR}/../"
- export COMMAND="bazel $*"
export PWD="$OLDPWD"
- exec nix-shell
+ exec nix-shell --command "bazel $*"
fi
prechecks() {