nixpkgs/pkgs/development/tools/build-managers/bazel/bazel-remote/default.nix

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

35 lines
834 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";
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}";
hash = "sha256-yvdsRc5KZAwzekktSu9tR9R2vvAMi+4JVkvy+ANFkQ8=";
2019-01-12 07:02:36 +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
ldflags = [ "-s" "-w" "-X main.gitCommit=${version}" ];
meta = with lib; {
homepage = "https://github.com/buchgr/bazel-remote";
description = "A 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
};
}