mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
||||
|
@ -51,6 +51,7 @@ stdenv.mkDerivation rec {
|
|||
unzip
|
||||
which
|
||||
binutils
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
# These must be propagated since the dependency is hidden in a compressed
|
||||
|
@ -83,6 +84,7 @@ stdenv.mkDerivation rec {
|
|||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv output/bazel $out/bin
|
||||
wrapProgram "$out/bin/bazel" --prefix PATH : "${jdk}/bin"
|
||||
'';
|
||||
|
||||
dontStrip = true;
|
||||
|
|
Loading…
Reference in a new issue