Add initial version for bazel.io build manager.
This commit is contained in:
parent
6792f76706
commit
f5eed7e14e
28
pkgs/development/tools/build-managers/bazel/default.nix
Normal file
28
pkgs/development/tools/build-managers/bazel/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, jdk, zip, zlib, protobuf, pkgconfig, libarchive, unzip, makeWrapper }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "bazel-20150325.9a0dc1b2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "google";
|
||||||
|
repo = "bazel";
|
||||||
|
rev = "9a0dc1b2";
|
||||||
|
sha256 = "1bgx12bnrqxz720ljn7kdzd4678p4mxldiylll3h0v5673vgrf5p";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pkgconfig protobuf zlib zip jdk libarchive unzip makeWrapper ];
|
||||||
|
|
||||||
|
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
|
||||||
|
wrapProgram $out/bin/bazel --set JAVA_HOME "${jdk}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://github.com/google/bazel/;
|
||||||
|
description = "Build tool that builds code quickly and reliably";
|
||||||
|
license = stdenv.lib.licenses.asl20;
|
||||||
|
};
|
||||||
|
}
|
@ -4816,6 +4816,8 @@ let
|
|||||||
|
|
||||||
bam = callPackage ../development/tools/build-managers/bam {};
|
bam = callPackage ../development/tools/build-managers/bam {};
|
||||||
|
|
||||||
|
bazel = callPackage ../development/tools/build-managers/bazel { jdk = oraclejdk8; };
|
||||||
|
|
||||||
binutils = if stdenv.isDarwin
|
binutils = if stdenv.isDarwin
|
||||||
then import ../build-support/native-darwin-cctools-wrapper {inherit stdenv;}
|
then import ../build-support/native-darwin-cctools-wrapper {inherit stdenv;}
|
||||||
else callPackage ../development/tools/misc/binutils {
|
else callPackage ../development/tools/misc/binutils {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user