2023-05-21 10:51:09 -06:00
|
|
|
{ lib, buildGoModule, fetchFromGitLab }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gitlab-container-registry";
|
2024-11-13 13:58:27 -07:00
|
|
|
version = "4.13.0";
|
2023-05-21 10:51:09 -06:00
|
|
|
rev = "v${version}-gitlab";
|
|
|
|
|
2023-10-24 05:58:31 -06:00
|
|
|
# nixpkgs-update: no auto update
|
2023-05-21 10:51:09 -06:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "container-registry";
|
|
|
|
inherit rev;
|
2024-11-13 13:58:27 -07:00
|
|
|
hash = "sha256-V58UjlIlGllbPBTZMY5EoGNC+toy11xLCnnLHXqJUVU=";
|
2023-05-21 10:51:09 -06:00
|
|
|
};
|
|
|
|
|
2024-11-13 13:58:27 -07:00
|
|
|
vendorHash = "sha256-LSl94y1g0sfqXWddF7f8z2YRC5D6zJP1t+gsXqdVHww=";
|
2023-05-21 10:51:09 -06:00
|
|
|
|
|
|
|
postPatch = ''
|
2024-04-30 17:43:43 -06:00
|
|
|
# Disable flaky inmemory storage driver test
|
|
|
|
rm registry/storage/driver/inmemory/driver_test.go
|
|
|
|
|
2023-05-21 10:51:09 -06:00
|
|
|
substituteInPlace health/checks/checks_test.go \
|
|
|
|
--replace \
|
|
|
|
'func TestHTTPChecker(t *testing.T) {' \
|
|
|
|
'func TestHTTPChecker(t *testing.T) { t.Skip("Test requires network connection")'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GitLab Docker toolset to pack, ship, store, and deliver content";
|
|
|
|
license = licenses.asl20;
|
2024-07-30 04:35:47 -06:00
|
|
|
maintainers = with maintainers; [ yayayayaka ] ++ teams.cyberus.members;
|
2023-05-21 10:51:09 -06:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|