2021-08-07 17:34:08 +02:00
|
|
|
{ lib
|
2022-12-13 18:53:22 +01:00
|
|
|
, fetchpatch
|
2021-08-07 17:34:08 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "reg";
|
|
|
|
version = "0.16.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "genuinetools";
|
|
|
|
repo = "reg";
|
|
|
|
rev = "v${version}";
|
2023-08-30 04:08:36 +02:00
|
|
|
hash = "sha256-tfBetjoJkr84XLEEcfdRTtc0UZ4m/uRH1Fpr91lQn8o=";
|
2021-08-07 17:34:08 +02:00
|
|
|
};
|
|
|
|
|
2022-12-13 18:53:22 +01:00
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-08-30 04:08:36 +02:00
|
|
|
vendorHash = null;
|
2021-08-07 17:34:08 +02:00
|
|
|
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 ];
|
2023-11-23 22:09:35 +01:00
|
|
|
mainProgram = "reg";
|
2021-08-07 17:34:08 +02:00
|
|
|
};
|
|
|
|
}
|