about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/virtualization/reg/default.nix
blob: eaa937f6f3265b70357530cbb3724a6ad5e906f7 (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
35
36
37
38
39
40
41
{ lib
, fetchpatch
, fetchFromGitHub
, buildGoModule
}:

buildGoModule rec {
  pname = "reg";
  version = "0.16.1";

  src = fetchFromGitHub {
    owner = "genuinetools";
    repo = "reg";
    rev = "v${version}";
    sha256 = "1jlza1czfssssi3y9zi6kr8k9msfa7vp215ibhwbz4h97av5xw5m";
  };

  patches = [
    # https://github.com/genuinetools/reg/pull/218
    (fetchpatch {
      name = "update-x-sys-for-go-1.18-on-aarch64-darwin.patch";
      url = "https://github.com/genuinetools/reg/commit/f37b04ad8be47f1e68ef9b2c5906324d7096231e.patch";
      hash = "sha256-wmBjPdrpNpxx//I+d+k8DNR11TmyXxb84vXR/MrYHKA=";
    })
    (fetchpatch {
      name = "update-vendored-dependencies.patch";
      url = "https://github.com/genuinetools/reg/commit/8bb04bc3fd41c089716e65ee905c6feac8bda5a0.patch";
      hash = "sha256-5nZaayy0xu7sOJHVCp6AotINiF7vXk2Jic8SR8ZrH/g=";
    })
  ];

  vendorSha256 = null;
  doCheck = false;

  meta = with lib; {
    description = "Docker registry v2 command line client and repo listing generator with security checks";
    homepage = "https://github.com/genuinetools/reg";
    license = licenses.mit;
    maintainers = with maintainers; [ ereslibre ];
  };
}