159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
34 lines
1 KiB
Nix
34 lines
1 KiB
Nix
{ lib, buildGoModule, fetchFromGitLab }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitlab-container-registry";
|
|
version = "4.9.0";
|
|
rev = "v${version}-gitlab";
|
|
|
|
# nixpkgs-update: no auto update
|
|
src = fetchFromGitLab {
|
|
owner = "gitlab-org";
|
|
repo = "container-registry";
|
|
inherit rev;
|
|
hash = "sha256-kBM5ICESRUwHlM9FeJEFQFTM2E2zIF6axOGOHNmloKo=";
|
|
};
|
|
|
|
vendorHash = "sha256-nePIExsIWJgBDUrkkVBzc0qsYdfxR7GL1VhdWcVJnLg=";
|
|
|
|
postPatch = ''
|
|
# Disable flaky inmemory storage driver test
|
|
rm registry/storage/driver/inmemory/driver_test.go
|
|
|
|
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 = "GitLab Docker toolset to pack, ship, store, and deliver content";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ yayayayaka ] ++ teams.cyberus.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|