@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, jdk, zip, unzip, which, bash, binutils, coreutils }:
1+{ stdenv, fetchurl, jdk, zip, unzip, which, bash, binutils, coreutils, makeWrapper }:
22
33stdenv.mkDerivation rec {
44
@@ -51,6 +51,7 @@ stdenv.mkDerivation rec {
5151 unzip
5252 which
5353 binutils
54+ makeWrapper
5455 ];
5556
5657 # These must be propagated since the dependency is hidden in a compressed
@@ -83,6 +84,7 @@ stdenv.mkDerivation rec {
8384 installPhase = ''
8485 mkdir -p $out/bin
8586 mv output/bazel $out/bin
87+ wrapProgram "$out/bin/bazel" --prefix PATH : "${jdk}/bin"
8688 '';
8789
8890 dontStrip = true;