nixpkgs/pkgs/development/tools/build-managers
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
..
apache-ant Add coreutils dependency to ant launcher script 2014-09-17 03:54:25 +01:00
apache-maven maven: 3.2.3 -> 3.2.5 2015-01-21 22:01:15 +01:00
bam Turn more licenses into lib.licenses style 2014-11-06 00:48:16 +00:00
bazel bazel: fix build, make compatible with openjdk 2015-07-28 20:38:44 +01:00
boot boot: correct sha256 2015-07-19 02:33:43 +08:00
buildbot buildbot{,-slave}: update 0.8.8 -> 0.8.10 2014-12-09 19:14:03 +01:00
buildbot-slave buildbot{,-slave}: update 0.8.8 -> 0.8.10 2014-12-09 19:14:03 +01:00
cargo cargo: workaround frequent hash mismatches due to #8567 2015-07-21 21:26:02 +02:00
cmake Merge branch 'master.upstream' into staging.upstream 2015-06-12 13:47:46 -07:00
colormake Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
dub dub update to v0.9.23 2015-04-14 10:46:16 -07:00
gnumake make: Don't segfault if we can't get a tty name 2015-06-04 19:47:34 +02:00
gnustep add security-tool 2015-07-10 10:41:07 -07:00
gradle gradle: don't hardcode gradle-launcher-VERSION.jar 2015-02-27 12:08:03 +01:00
icmake icmake: update from 7.22.00 to 7.22.01 2015-05-28 18:57:32 +02:00
jam Turn more licenses into lib.licenses style 2014-11-06 00:48:16 +00:00
leiningen Leiningen: Fix GnuPG Support. 2015-02-07 18:45:35 +01:00
mk nixos.org/tarballs -> tarballs.nixos.org 2013-06-25 14:12:16 +02:00
ninja nixpkgs: ninja 1.5.3 -> 1.6.0 2015-07-20 13:52:34 -05:00
rebar Elixir and rebar aren't Linux-specific tools 2014-09-03 20:14:57 +01:00
remake remake: bump from version 3.81+dbg-0.2 to 3.82+dbg-0.6 2013-06-22 21:09:43 +02:00
sbt sbt: bump to 0.13.8 2015-03-22 19:58:01 +01:00
scons scons: update 2.3.4 -> 2.3.5 2015-07-05 00:32:53 +03:00
tup Add tup 2015-01-14 01:37:44 -05:00