about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/gh-actions-cache/default.nix
blob: 8bc735f4e523966d9dea92a43c00b42e71906be6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, fetchFromGitHub
, buildGoModule
}:

buildGoModule rec {
  pname = "gh-actions-cache";
  version = "1.0.4";

  src = fetchFromGitHub {
    owner = "actions";
    repo = "gh-actions-cache";
    rev = "v${version}";
    hash = "sha256-GVha3xxLTBTiKfAjGb2q9btsGYzWQivGLyZ4Gg0s/N0=";
  };

  vendorHash = "sha256-4/Zt+ga3abEPtR0FjWIsDpOiG1bfVtVuLuXP8aHbzqk=";

  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 ];
  };
}