depot/third_party/nixpkgs/pkgs/tools/misc/gh-actions-cache/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

34 lines
763 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "gh-actions-cache";
version = "1.0.3";
src = fetchFromGitHub {
owner = "actions";
repo = "gh-actions-cache";
rev = "v${version}";
hash = "sha256-5iCj6z4HCMVFeplb3dGP/V60z6zMUnUPVBMnPi4yU1Q=";
};
vendorHash = "sha256-i9akQ0IjH9NItjYvMWLiGnFQrfZhA7SOvPZiUvdtDrk=";
ldflags = [
"-s"
"-w"
];
# Tests need network
doCheck = false;
meta = {
description = "gh extension to manage GitHub Actions caches";
homepage = "https://github.com/actions/gh-actions-cache";
changelog = "https://github.com/actions/gh-actions-cache/releases/tag/${src.rev}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ amesgen ];
};
}