diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2023-01-28 06:26:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-28 06:26:42 -0500 |
commit | 8142fb901dfc9cd97936eba52515e8d4ce74c852 (patch) | |
tree | ceac624de219d1ffd78dc3888645d61eed0e60ac /pkgs | |
parent | f1fc2defa6b07d8f098d0ca5dc02e1e8f60ecb3c (diff) | |
parent | ad32631c6b76a410c5c0e508309b6517515bce81 (diff) |
Merge pull request #212497 from amesgen/init-gh-actions-cache
gh-actions-cache: init at 1.0.3
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/misc/gh-actions-cache/default.nix | 34 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 36 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e0691fbd7e899..4d283ed935469 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1397,6 +1397,8 @@ with pkgs; gfshare = callPackage ../tools/security/gfshare { }; + gh-actions-cache = callPackage ../tools/misc/gh-actions-cache { }; + gh-cal = callPackage ../tools/misc/gh-cal { inherit (darwin.apple_sdk.frameworks) Security; }; |