forked from mirrors/nixpkgs
Merge pull request #41194 from uri-canva/bazel-buildtools
Add Bazel buildtools
This commit is contained in:
commit
7212a6c130
|
@ -3965,6 +3965,11 @@
|
|||
github = "uralbash";
|
||||
name = "Svintsov Dmitry";
|
||||
};
|
||||
uri-canva = {
|
||||
email = "uri@canva.com";
|
||||
github = "uri-canva";
|
||||
name = "Uri Baghin";
|
||||
};
|
||||
utdemir = {
|
||||
email = "me@utdemir.com";
|
||||
github = "utdemir";
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "bazel-buildtools";
|
||||
version = "2018-05-24";
|
||||
|
||||
goPackagePath = "github.com/bazelbuild/buildtools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bazelbuild";
|
||||
repo = "buildtools";
|
||||
rev = "588d90030bc8054b550967aa45a8a8d170deba0b";
|
||||
sha256 = "18q1z138545kh4s5k0jcqwhpzc1w7il4x00l7yzv9wq8bg1vn1rv";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "This derivation contains developer tools for working with Google's bazel buildtool.";
|
||||
homepage = https://github.com/bazelbuild/buildtools;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ uri-canva ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
29
pkgs/development/tools/build-managers/bazel/buildtools/deps.nix
generated
Normal file
29
pkgs/development/tools/build-managers/bazel/buildtools/deps.nix
generated
Normal file
|
@ -0,0 +1,29 @@
|
|||
[
|
||||
{
|
||||
goPackagePath = "github.com/bazelbuild/buildtools";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/bazelbuild/buildtools";
|
||||
rev = "588d90030bc8054b550967aa45a8a8d170deba0b";
|
||||
sha256 = "18q1z138545kh4s5k0jcqwhpzc1w7il4x00l7yzv9wq8bg1vn1rv";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/golang/protobuf";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/golang/protobuf";
|
||||
rev = "3a3da3a4e26776cc22a79ef46d5d58477532dede";
|
||||
sha256 = "05l0kjgk6ss98qii7vpjj2bqszyd16h448w47sv4422mp2xbni40";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/google/skylark";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/google/skylark";
|
||||
rev = "572cea2bd78e2f1de8f3e136db9413cf02f097eb";
|
||||
sha256 = "0hc7gwvqsw421if06nlfdl86h6jl8wgjx1j2x2mzpnzdh1r03w92";
|
||||
};
|
||||
}
|
||||
]
|
|
@ -7692,6 +7692,11 @@ with pkgs;
|
|||
bazel_0_4 = callPackage ../development/tools/build-managers/bazel/0.4.nix { };
|
||||
bazel = callPackage ../development/tools/build-managers/bazel { };
|
||||
|
||||
bazel-buildtools = callPackage ../development/tools/build-managers/bazel/buildtools { };
|
||||
buildifier = bazel-buildtools;
|
||||
buildozer = bazel-buildtools;
|
||||
unused_deps = bazel-buildtools;
|
||||
|
||||
buildBazelPackage = callPackage ../build-support/build-bazel-package { };
|
||||
|
||||
bear = callPackage ../development/tools/build-managers/bear { };
|
||||
|
|
Loading…
Reference in a new issue