depot/third_party/nixpkgs/pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
1,008 B
Nix

{ lib, buildGoModule, fetchFromGitLab }:
buildGoModule rec {
pname = "gitlab-container-registry";
version = "4.5.0";
rev = "v${version}-gitlab";
# nixpkgs-update: no auto update
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "container-registry";
inherit rev;
hash = "sha256-dCDybwIfzC79Mobejz/5XbEMQXkPuO8HejjannA6k/M=";
};
vendorHash = "sha256-sybppXCoTrc196xLBW1+sUg9Y5uA0GAptlJ7RjhzuGc=";
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 xanderio ];
platforms = platforms.unix;
};
}