5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
34 lines
944 B
Nix
34 lines
944 B
Nix
{ lib, buildGoModule, fetchFromGitLab }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitlab-container-registry";
|
|
version = "3.84.0";
|
|
rev = "v${version}-gitlab";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "gitlab-org";
|
|
repo = "container-registry";
|
|
inherit rev;
|
|
sha256 = "sha256-VdLovX3/y0fME74YlpPxjNPAwFpr1urAHJYO24VJ4AE=";
|
|
};
|
|
|
|
vendorHash = "sha256-ZFQixOgcB8GqgZPIbjMJEYOlg9cD+wAMZF7mwWaNSXI=";
|
|
|
|
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;
|
|
};
|
|
}
|