2023-07-15 17:15:38 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitLab }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gitlab-container-registry";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.86.2";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "v${version}-gitlab";
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
# nixpkgs-update: no auto update
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "container-registry";
|
|
|
|
inherit rev;
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-hZhlSZ/crwzc8KEkbMGY9zAYVbMT9p4y7Wm3B+F+iPU=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-3iBMn1kA/GZC/7FEFLd1/e7+mSsCOAo+zQo3dVpTHw4=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|