2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
35 lines
979 B
Nix
35 lines
979 B
Nix
{ lib, buildGoModule, fetchFromGitLab }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitlab-container-registry";
|
|
version = "3.85.0";
|
|
rev = "v${version}-gitlab";
|
|
|
|
# nixpkgs-update: no auto update
|
|
src = fetchFromGitLab {
|
|
owner = "gitlab-org";
|
|
repo = "container-registry";
|
|
inherit rev;
|
|
sha256 = "sha256-F20f1qDsI+moBAL+Tpx5AALgOi0vTH7hZ5RIvRMwY1s=";
|
|
};
|
|
|
|
vendorHash = "sha256-JWuSJD2Mi0om9vA6+mYbArfr2lmGlRua6IM0DhDzSBk=";
|
|
|
|
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;
|
|
};
|
|
}
|