1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/development
Philip Potter 76dd430cd8 bazel: fix build, make compatible with openjdk
Bazel 981b7bc1 depends on protobuf-2.5 and won't work with 2.6 (and in
bbe84fe3d upgraded straight to protobuf 3.0.0-alpha3); this commit fixes
the dependency to depend on protobuf2_5 specifically.

The bazel compile.sh needs `which` on the PATH; so this commit adds that
as a dependency.

Setting JAVA_HOME to ${jdk} broke bazel when used with openjdk, with the
message:

    Problem with java installation: couldn't find/access rt.jar in /nix/store/z9vc0vzyzhnpl5l5inmqdnvdnbxmmmg7-openjdk-8u60b24

This is because if you set JAVA_HOME, bazel will look for rt.jar in
$JAVA_HOME/lib and $JAVA_HOME/jre/lib, but the nixpkgs openjdk
distribution puts rt.jar in ${jdk}/lib/openjdk/jre/lib for some reason.

To fix this, this commit uses the ${jdk.home} passthru value to use the
appropriate JAVA_HOME for the given jdk.

As bazel now works with openjdk, and openjdk is free while oraclejdk is
not, this commit changes the default jdk for bazel to openjdk.

Since this package didn't have a listed maintainer, I'm claiming it.
2015-07-28 20:38:44 +01:00
..
arduino
compilers ghcNokinds: 20150703 -> 20150718 2015-07-28 02:02:33 +03:00
coq-modules coq-fiat: do not run tests on i686 2015-07-09 00:15:24 +02:00
dotnet-modules/patches
eclipse ecj: require jdk7 instead of jdk 2015-07-27 17:37:37 +02:00
go-modules/generic
guile-modules guile-gnome-platform: 2.16.1 -> 2015/01/23 git 2015-07-23 04:13:03 -05:00
haskell-modules haskellPackages.gnuplot: remove reduntant patch 2015-07-28 12:33:29 +03:00
interpreters php: Update to 5.4.43, 5.5.27, 5.6.11 2015-07-28 13:10:53 +02:00
libraries freetds: fix broken url (close #9031) 2015-07-28 20:37:41 +02:00
lisp-modules Fix version strings for switch from CVS 2015-07-15 23:52:44 +03:00
lua-modules
misc
mobile
ocaml-modules Make ocaml's mysql propagate mysql.lib 2015-07-23 19:50:01 +02:00
perl-modules fix perl package platforms 2015-07-18 14:52:32 -07:00
pharo
pure-modules purePackages.stllib: fix build with gcc 4.9 (ZHF) 2015-07-12 23:18:51 +02:00
python-modules zc_buildout_nix: 2.2.1 -> 2.4.0 2015-07-22 20:28:15 +03:00
qtcreator qtcreator: fix hash 2015-07-04 03:38:53 +03:00
r-modules rPackages.stringi: add ICU data tables 2015-07-28 12:33:29 +03:00
ruby-modules
tools bazel: fix build, make compatible with openjdk 2015-07-28 20:38:44 +01:00
web iojs (2.3.4 -> 2.4.0) 2015-07-23 19:24:05 +02:00