2021-05-07 02:48:49 +00:00
|
|
|
{ buildGoModule
|
2019-01-12 07:02:36 +00:00
|
|
|
, fetchFromGitHub
|
2021-01-25 08:26:54 +00:00
|
|
|
, lib
|
2019-01-12 07:02:36 +00:00
|
|
|
}:
|
|
|
|
|
2021-05-07 02:48:49 +00:00
|
|
|
buildGoModule rec {
|
2020-10-22 13:43:23 +00:00
|
|
|
pname = "bazel-remote";
|
2023-08-30 04:20:00 +00:00
|
|
|
version = "2.4.3";
|
2019-01-12 07:02:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "buchgr";
|
2021-05-07 02:48:49 +00:00
|
|
|
repo = pname;
|
2020-02-14 09:20:00 +00:00
|
|
|
rev = "v${version}";
|
2023-08-30 04:20:00 +00:00
|
|
|
hash = "sha256-yvdsRc5KZAwzekktSu9tR9R2vvAMi+4JVkvy+ANFkQ8=";
|
2019-01-12 07:02:36 +00:00
|
|
|
};
|
|
|
|
|
2023-08-24 04:20:00 +00:00
|
|
|
vendorHash = "sha256-0rmqsUMwk5ytAZc94JzvZTuh0WAmQwBEWSE96yNALE0=";
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
2019-01-12 07:02:36 +00:00
|
|
|
|
2021-05-07 02:48:49 +00:00
|
|
|
doCheck = false;
|
2019-01-12 07:02:36 +00:00
|
|
|
|
2023-08-24 04:20:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.gitCommit=${version}" ];
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/buchgr/bazel-remote";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "A remote HTTP/1.1 cache for Bazel";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "bazel-remote";
|
2023-08-24 04:20:00 +00:00
|
|
|
changelog = "https://github.com/buchgr/bazel-remote/releases/tag/v${version}";
|
2019-01-12 07:02:36 +00:00
|
|
|
license = licenses.asl20;
|
2021-12-13 12:49:50 +00:00
|
|
|
maintainers = lib.teams.bazel.members;
|
2019-09-11 04:46:49 +00:00
|
|
|
platforms = platforms.darwin ++ platforms.linux;
|
2019-01-12 07:02:36 +00:00
|
|
|
};
|
|
|
|
}
|