mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
40 lines
895 B
Nix
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;
|
|
};
|
|
})
|