diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix b/nixpkgs/pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix new file mode 100644 index 000000000000..2ce13dba4355 --- /dev/null +++ b/nixpkgs/pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix @@ -0,0 +1,35 @@ +{ lib, buildGoModule, fetchFromGitLab }: + +buildGoModule rec { + pname = "gitlab-container-registry"; + version = "3.86.2"; + rev = "v${version}-gitlab"; + + # nixpkgs-update: no auto update + src = fetchFromGitLab { + owner = "gitlab-org"; + repo = "container-registry"; + inherit rev; + sha256 = "sha256-hZhlSZ/crwzc8KEkbMGY9zAYVbMT9p4y7Wm3B+F+iPU="; + }; + + vendorHash = "sha256-3iBMn1kA/GZC/7FEFLd1/e7+mSsCOAo+zQo3dVpTHw4="; + + patches = [ + ./Disable-inmemory-storage-driver-test.patch + ]; + + 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; + }; +} |