2015-07-26 21:45:32 +01:00
|
|
|
{ stdenv, fetchFromGitHub, jdk, zip, zlib, protobuf2_5, pkgconfig, libarchive, unzip, which, makeWrapper }:
|
2015-03-25 15:12:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-03-26 09:46:15 +00:00
|
|
|
name = "bazel-20150326.981b7bc1";
|
2015-03-25 15:12:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "bazel";
|
2015-03-26 09:46:15 +00:00
|
|
|
rev = "981b7bc1";
|
2015-03-26 09:48:27 +00:00
|
|
|
sha256 = "0i9gxgqhfmix7hmkb15s7h9f8ssln08pixqm26pd1d20g0kfyxj7";
|
2015-03-25 15:12:02 +00:00
|
|
|
};
|
|
|
|
|
2015-07-26 21:45:32 +01:00
|
|
|
buildInputs = [ pkgconfig protobuf2_5 zlib zip jdk libarchive unzip which makeWrapper ];
|
2015-03-25 15:12:02 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
PROTOC=protoc bash compile.sh
|
|
|
|
mkdir -p $out/bin $out/share
|
|
|
|
cp -R output $out/share/bazel
|
|
|
|
ln -s $out/share/bazel/bazel $out/bin/bazel
|
2015-07-26 21:45:32 +01:00
|
|
|
wrapProgram $out/bin/bazel --set JAVA_HOME "${jdk.home}"
|
2015-03-25 15:12:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://github.com/google/bazel/;
|
|
|
|
description = "Build tool that builds code quickly and reliably";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
2015-07-26 21:45:32 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.philandstuff ];
|
2015-03-25 15:12:02 +00:00
|
|
|
};
|
|
|
|
}
|