1{
2 lib,
3 buildGoModule,
4 fetchFromGitLab,
5}:
6
7buildGoModule rec {
8 pname = "gitlab-container-registry";
9 version = "4.25.0";
10 rev = "v${version}-gitlab";
11
12 # nixpkgs-update: no auto update
13 src = fetchFromGitLab {
14 owner = "gitlab-org";
15 repo = "container-registry";
16 inherit rev;
17 hash = "sha256-7jzKFC29NAHi5iag6aA/5LzH6IyqMa3yAxtzV9OsBnQ=";
18 };
19
20 vendorHash = "sha256-z9IlfyJ48FQzhbY38GbZaeQjg3cMDU8tLCXKhazP64A=";
21
22 checkFlags =
23 let
24 skippedTests = [
25 # requires internet
26 "TestHTTPChecker"
27 # requires s3 credentials/urls
28 "TestS3DriverPathStyle"
29 # flaky
30 "TestPurgeAll"
31 ];
32 in
33 [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
34
35 __darwinAllowLocalNetworking = true;
36
37 meta = with lib; {
38 description = "GitLab Docker toolset to pack, ship, store, and deliver content";
39 license = licenses.asl20;
40 teams = with teams; [
41 gitlab
42 cyberus
43 ];
44 platforms = platforms.unix;
45 };
46}