depot/third_party/nixpkgs/pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

35 lines
977 B
Nix

{ lib, buildGoModule, fetchFromGitLab }:
buildGoModule rec {
pname = "gitlab-container-registry";
version = "3.88.0";
rev = "v${version}-gitlab";
# nixpkgs-update: no auto update
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "container-registry";
inherit rev;
hash = "sha256-vQ5bP2S1McZxD+Mjw0y/+GB8ntv8nQynM1cIWtUK7pU=";
};
vendorHash = "sha256-rDmmCwz/+FBzbREKIqwQulcOKwd4Y6/MITyNpB+pfwQ=";
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;
};
}