bazel: Wrap so java is present at runtime
Bazel can't start up without javac in $PATH.
This commit is contained in:
parent
14ef7c0c59
commit
7c17c10bab
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, jdk, zip, unzip, which, bash, binutils, coreutils }:
|
{ stdenv, fetchurl, jdk, zip, unzip, which, bash, binutils, coreutils, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
@ -51,6 +51,7 @@ stdenv.mkDerivation rec {
|
|||||||
unzip
|
unzip
|
||||||
which
|
which
|
||||||
binutils
|
binutils
|
||||||
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
# These must be propagated since the dependency is hidden in a compressed
|
# These must be propagated since the dependency is hidden in a compressed
|
||||||
@ -83,6 +84,7 @@ stdenv.mkDerivation rec {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
mv output/bazel $out/bin
|
mv output/bazel $out/bin
|
||||||
|
wrapProgram "$out/bin/bazel" --prefix PATH : "${jdk}/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user