diff options
Diffstat (limited to 'pkgs/tools/misc/gh-actions-cache/default.nix')
-rw-r--r-- | pkgs/tools/misc/gh-actions-cache/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/misc/gh-actions-cache/default.nix b/pkgs/tools/misc/gh-actions-cache/default.nix new file mode 100644 index 0000000000000..4c80d032ab10b --- /dev/null +++ b/pkgs/tools/misc/gh-actions-cache/default.nix @@ -0,0 +1,34 @@ +{ 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 ]; + }; +} |