1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs
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
..
applications hamster-time-tracker: init at 1.04 2015-07-28 21:22:21 +02:00
build-support buildRustPackage: Fix rust builds due to #7524 2015-07-24 20:47:58 +02:00
data dejavu-fonts: don't install the fonts twice :-S 2015-07-26 17:49:31 +02:00
desktops gnome3.adwaita-icon-theme: remove empty dir tree 2015-07-28 17:05:07 +02:00
development bazel: fix build, make compatible with openjdk 2015-07-28 20:38:44 +01:00
games fix homepages 2015-07-28 12:33:30 +03:00
misc ghostscript: Get rid of docs/examples 2015-07-26 22:46:45 +02:00
os-specific nvidia-x11: add a symlink for libGLESv2.so.2 (close #9024) 2015-07-28 12:43:58 +02:00
servers postgresql91: create doc directory (ZHF) 2015-07-28 18:11:05 +02:00
shells Merge branch 'master.upstream' into staging.upstream 2015-07-15 02:02:46 -07:00
stdenv make bootstrap files buildable in sandbox 2015-07-10 14:00:47 -07:00
test
tools Merge pull request #9012 from womfoo/facter 2015-07-28 18:36:34 +02:00
top-level bazel: fix build, make compatible with openjdk 2015-07-28 20:38:44 +01:00