mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 11:33:31 +00:00
37 lines
926 B
Nix
37 lines
926 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "bazel-buildtools";
|
|
version = "6.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bazelbuild";
|
|
repo = "buildtools";
|
|
rev = version;
|
|
hash = "sha256-CqQ8rj45RES3BV7RBfGr/JX9GzjyRuA1sxgKzQx+oE8=";
|
|
};
|
|
|
|
vendorHash = "sha256-DigTREfI6I48wxRpGp/bfH1NbUZ4E1B5UTQXpI0LY1A=";
|
|
|
|
preBuild = ''
|
|
rm -r warn/docs
|
|
'';
|
|
|
|
proxyVendor = true;
|
|
|
|
doCheck = false;
|
|
|
|
excludedPackages = [ "generatetables" ];
|
|
|
|
ldflags = [ "-s" "-w" "-X main.buildVersion=${version}" "-X main.buildScmRevision=${src.rev}" ];
|
|
|
|
meta = with lib; {
|
|
description = "Tools for working with Google's bazel buildtool. Includes buildifier, buildozer, and unused_deps";
|
|
homepage = "https://github.com/bazelbuild/buildtools";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers;
|
|
[ elasticdog uri-canva marsam ]
|
|
++ lib.teams.bazel.members;
|
|
};
|
|
}
|