Files
nixpkgs/pkgs/by-name/ba/bazel-remote/package.nix
2026-07-23 17:15:07 +00:00

40 lines
895 B
Nix

{
buildGoModule,
fetchFromGitHub,
lib,
}:
buildGoModule (finalAttrs: {
pname = "bazel-remote";
version = "2.6.2";
src = fetchFromGitHub {
owner = "buchgr";
repo = "bazel-remote";
rev = "v${finalAttrs.version}";
hash = "sha256-wE0l1tBtj44l1Eamd4wCHzjnPhT7W5yZ5MkTA5cOUrg=";
};
vendorHash = "sha256-DGyGQLEAwy79ibWGxAWa7gmaXTajcW3jqGJou2Wnykc=";
subPackages = [ "." ];
doCheck = false;
ldflags = [
"-s"
"-w"
"-X main.gitCommit=${finalAttrs.version}"
];
meta = {
homepage = "https://github.com/buchgr/bazel-remote";
description = "Remote HTTP/1.1 cache for Bazel";
mainProgram = "bazel-remote";
changelog = "https://github.com/buchgr/bazel-remote/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
teams = [ lib.teams.bazel ];
platforms = lib.platforms.darwin ++ lib.platforms.linux;
};
})