mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00

Diff: https://github.com/bazelbuild/buildtools/compare/6.1.1...v6.1.2 Changelog: https://github.com/bazelbuild/buildtools/releases/tag/v6.1.2
38 lines
1017 B
Nix
38 lines
1017 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "bazel-buildtools";
|
|
version = "6.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bazelbuild";
|
|
repo = "buildtools";
|
|
rev = "v${version}";
|
|
hash = "sha256-iYLebD41x03kCW/k+bYVaYa2/erhrx/EithLaeTKfCw=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/bazelbuild/buildtools/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers;
|
|
[ elasticdog uri-canva marsam ]
|
|
++ lib.teams.bazel.members;
|
|
};
|
|
}
|