git.iko.soy/typeable/nixpkgs
on master help sign in
bazel: Wrap so java is present at runtime

Bazel can't start up without javac in $PATH.

commit7c17c10bab7ff0319c983828032d6a10b07b4faa authorBenjamin Staffin <benley@gmail.com> dateTue 28 Feb 2017, 12:44 (10 years ago) parent14ef7c0
1 file changed+3−1
pkgs/development/tools/build-managers/bazel/default.nix+3−1
pkgs/development/tools/build-managers/bazel/default.nix+3−1
@@ -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;