3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/top-level
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
..
all-packages.nix bazel: fix build, make compatible with openjdk 2015-07-28 20:38:44 +01:00
dotnet-packages.nix Fixed some descriptions 2015-06-29 16:20:58 +02:00
emacs-packages.nix emacs-moe-theme: init at 1.0 2015-07-12 21:22:27 +00:00
go-packages.nix Merge pull request #8731 from cheecheeo/fzf-master 2015-07-24 10:13:01 +02:00
guile-2-test.nix
haskell-packages.nix ghc: add haskell.compiler.ghcNokinds, for Richard Eisenberg's 'nokinds' branch 2015-07-06 11:09:28 +03:00
lua-packages.nix remove hardcoded clang 2015-06-11 14:42:55 +02:00
make-tarball.nix viber: Mark as broken 2015-05-12 14:30:56 +02:00
node-packages-generated.nix node-packages: add a few packages, fix, regenerate 2015-04-25 14:54:26 +02:00
node-packages.json node-packages: add a few packages, fix, regenerate 2015-04-25 14:54:26 +02:00
node-packages.nix node-packages: add a few packages, fix, regenerate 2015-04-25 14:54:26 +02:00
perl-packages.nix Merge branch 'staging' 2015-07-24 15:12:28 +02:00
php-packages.nix phpPackages.memcached: update from 2.1.0. to 2.2.0 2015-07-01 18:29:31 +02:00
platforms.nix platforms.nix: Remove IntegratorCP and Versatile 2015-06-30 10:33:25 +03:00
pure-packages.nix Fairly complete set of packages for Pure 2015-05-26 17:51:07 +10:00
python-packages.nix Merge pull request #8914 from desiderius/falcon-0.3.0 2015-07-28 14:05:58 +03:00
release-cross.nix Disable system_tarball_pc and fix eval 2015-07-22 12:27:15 +02:00
release-lib.nix release-lib.nix: set inHydra anyways, it might be useful some day 2015-07-17 15:33:49 +02:00
release-python.nix
release-small.nix Remove aterm28 from release-small, it's broken 2015-05-13 11:52:10 +02:00
release.nix Add "haskellPackages" binaries to the unstable channel. 2015-05-29 11:25:26 +02:00
rust-packages.nix rustRegistry: 2015-06-12-020d1f3 -> 2015-07-07-fd9e3e4 2015-07-09 21:14:55 -07:00