From 1b7bce45359535ec8d91f489a269aec4746c1b1f Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Wed, 11 Feb 2026 20:45:02 +0100 Subject: [PATCH] bazel_8: Add crucial packages to the standard shell environment A lot of parts of bazel and standard packages ssume bash existence; they should be able to call `/usr/bin/env bash`. Also, `rules_python` uses python3 as a bootstrap way to call other scripts (even if it uses its own interpreter). Both of these are important and have been in the bazel 7 package https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/ba/bazel_7/package.nix#L87-L104 ... but got lost in the bazel_8 package. Things that used to compile with bazel 7 now break with bazel 8 on nix. So: re-adding these crucial packages to the shell environment bazel has available when executing actions. --- pkgs/by-name/ba/bazel_8/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/ba/bazel_8/package.nix b/pkgs/by-name/ba/bazel_8/package.nix index cbed15eafdf0..eb9e0a43820b 100644 --- a/pkgs/by-name/ba/bazel_8/package.nix +++ b/pkgs/by-name/ba/bazel_8/package.nix @@ -77,6 +77,7 @@ let # ], # ) [ + bash # see https://github.com/NixOS/nixpkgs/pull/489519 coreutils diffutils file @@ -87,6 +88,7 @@ let gnused gnutar gzip + python3 # see https://github.com/NixOS/nixpkgs/pull/489519 unzip which zip