Commit aa06cc8b authored by Yves-Stan Le Cornec's avatar Yves-Stan Le Cornec
Browse files

bazel_5: wraps bazel to add default runtime dependencies to PATH

Bazel requires basic runtime dependencies in the PATH for repository rules and genrules. When `which` is missing in particular, it can lead to misleading error messages.
parent 14dcb2c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -586,6 +586,7 @@ stdenv.mkDerivation rec {
    # The binary _must_ exist with this naming if your project contains a .bazelversion
    # file.
    cp ./bazel_src/scripts/packages/bazel.sh $out/bin/bazel
    wrapProgram $out/bin/bazel $wrapperfile --suffix PATH : ${defaultShellPath}
    mv ./bazel_src/output/bazel $out/bin/bazel-${version}-${system}-${arch}

    mkdir $out/share
@@ -662,4 +663,3 @@ stdenv.mkDerivation rec {
  dontStrip = true;
  dontPatchELF = true;
}