Commit 1b7bce45 authored by Henner Zeller's avatar Henner Zeller
Browse files

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.
parent cd722fa1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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