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 Fixed several "package has no version" warnings 2015-05-14 17:19:41 +02:00
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 Lay down the foundation for packaging the .NET echosystem 2015-06-06 09:06:22 -04:00
eclipse ecj: require jdk7 instead of jdk 2015-07-27 17:37:37 +02:00
go-modules/generic goPackages: Build on hydra 2015-05-22 15:58:51 -07:00
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 titaniumsdk: upgrade 3.5.0 to 3.5.1 2015-05-19 14:27:55 +00:00
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 Update pharo-vm to 2015.04.30 2015-06-12 22:57:30 +02:00
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