nixpkgs/pkgs/by-name/ba/bazel-remote/package.nix

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

35 lines
832 B
Nix
Raw Normal View History

2021-05-07 02:48:49 +00:00
{ buildGoModule
2019-01-12 07:02:36 +00:00
, fetchFromGitHub
, lib
2019-01-12 07:02:36 +00:00
}:
2021-05-07 02:48:49 +00:00
buildGoModule rec {
pname = "bazel-remote";
2024-05-22 13:30:17 +00:00
version = "2.4.4";
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}";
2024-05-22 13:30:17 +00:00
hash = "sha256-ncYE48DtH+mIM9ZR7IB38SzQFordhMGLp79poqDKWLE=";
2019-01-12 07:02:36 +00:00
};
2024-05-22 13:30:17 +00:00
vendorHash = "sha256-7rxrnxZwxqRRQf1sWk8ILi2IV/pYmxBuwHl9khfCrKE=";
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
ldflags = [ "-s" "-w" "-X main.gitCommit=${version}" ];
meta = with lib; {
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${version}";
2019-01-12 07:02:36 +00:00
license = licenses.asl20;
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
};
}