1{ lib, buildGoModule, fetchFromGitLab }:
2
3buildGoModule rec {
4 pname = "gitlab-container-registry";
5 version = "3.85.0";
6 rev = "v${version}-gitlab";
7
8 # nixpkgs-update: no auto update
9 src = fetchFromGitLab {
10 owner = "gitlab-org";
11 repo = "container-registry";
12 inherit rev;
13 sha256 = "sha256-F20f1qDsI+moBAL+Tpx5AALgOi0vTH7hZ5RIvRMwY1s=";
14 };
15
16 vendorHash = "sha256-JWuSJD2Mi0om9vA6+mYbArfr2lmGlRua6IM0DhDzSBk=";
17
18 patches = [
19 ./Disable-inmemory-storage-driver-test.patch
20 ];
21
22 postPatch = ''
23 substituteInPlace health/checks/checks_test.go \
24 --replace \
25 'func TestHTTPChecker(t *testing.T) {' \
26 'func TestHTTPChecker(t *testing.T) { t.Skip("Test requires network connection")'
27 '';
28
29 meta = with lib; {
30 description = "The GitLab Docker toolset to pack, ship, store, and deliver content";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ yayayayaka xanderio ];
33 platforms = platforms.unix;
34 };
35}