depot/pkgs/by-name/ba/bazel-buildtools/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1,010 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "bazel-buildtools";
version = "7.3.1";
src = fetchFromGitHub {
owner = "bazelbuild";
repo = "buildtools";
rev = "v${version}";
hash = "sha256-AdwJDRw+AY3F+ZDaKqn5YzAVyAzvrV+d1WTk8OJtUdk=";
};
vendorHash = "sha256-sYZ7ogQY0dWOwJMvLljOjaKeYGYdLrF5AnetregdlYY=";
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 ]
++ lib.teams.bazel.members;
};
}