about summary refs log tree commit diff
path: root/pkgs/applications/version-management/gitlab/gitlab-container-registry
diff options
context:
space:
mode:
authorYaya <mak@nyantec.com>2023-05-21 16:51:09 +0000
committerYureka <yuka@yuka.dev>2023-05-25 10:08:53 +0200
commit44b7c719567b48b92e621e390ab5972de6414187 (patch)
treecb837cd072a11902e929e13e5372cb7d57d7a604 /pkgs/applications/version-management/gitlab/gitlab-container-registry
parentb1656cbd78914de8a5ea5dc7796dd6ee02bd68cd (diff)
gitlab-container-registry: init at 3.74.0
With version 15.8 GitLab deprecates the use of an "external" container
registry (in our case pkgs.docker-distribution). The external registry
will be replaced with this fork that contains extra functionality that
GitLab uses internally. See
https://gitlab.com/gitlab-org/container-registry/-/blob/master/docs-gitlab/README.md
Diffstat (limited to 'pkgs/applications/version-management/gitlab/gitlab-container-registry')
-rw-r--r--pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix b/pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix
new file mode 100644
index 0000000000000..edd2b0660912c
--- /dev/null
+++ b/pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix
@@ -0,0 +1,30 @@
+{ lib, buildGoModule, fetchFromGitLab }:
+
+buildGoModule rec {
+  pname = "gitlab-container-registry";
+  version = "3.74.0";
+  rev = "v${version}-gitlab";
+
+  src = fetchFromGitLab {
+    owner = "gitlab-org";
+    repo = "container-registry";
+    inherit rev;
+    sha256 = "sha256-fwMu45OFfNgFgMyQFWfvmM3Qv+co1ofsZLL44OoW9Wo=";
+  };
+
+  vendorHash = "sha256-9rO2GmoFZrNA3Udaktn8Ek9uM8EEoc0I3uv4UEq1c1k=";
+
+  postPatch = ''
+    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 = "The GitLab Docker toolset to pack, ship, store, and deliver content";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ yayayayaka xanderio ];
+    platforms = platforms.unix;
+  };
+}