https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
28 lines
636 B
Nix
28 lines
636 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "bazel-remote";
|
|
version = "2.3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "buchgr";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-5VxPCfartTRYCmjwNrH7SM0o7IQ4+Tq8Q2IM8hFWyVc=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-wXgW7HigMIeUZAcZpm5TH9thfCHmpz+M42toWHgwIYo=";
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/buchgr/bazel-remote";
|
|
description = "A remote HTTP/1.1 cache for Bazel";
|
|
license = licenses.asl20;
|
|
maintainers = lib.teams.bazel.members;
|
|
platforms = platforms.darwin ++ platforms.linux;
|
|
};
|
|
}
|