{ lib, buildGoModule, fetchFromGitLab, }: buildGoModule rec { pname = "gitlab-container-registry"; version = "4.25.0"; rev = "v${version}-gitlab"; # nixpkgs-update: no auto update src = fetchFromGitLab { owner = "gitlab-org"; repo = "container-registry"; inherit rev; hash = "sha256-7jzKFC29NAHi5iag6aA/5LzH6IyqMa3yAxtzV9OsBnQ="; }; vendorHash = "sha256-z9IlfyJ48FQzhbY38GbZaeQjg3cMDU8tLCXKhazP64A="; checkFlags = let skippedTests = [ # requires internet "TestHTTPChecker" # requires s3 credentials/urls "TestS3DriverPathStyle" # flaky "TestPurgeAll" ]; in [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; __darwinAllowLocalNetworking = true; meta = with lib; { description = "GitLab Docker toolset to pack, ship, store, and deliver content"; license = licenses.asl20; teams = with teams; [ gitlab cyberus ]; platforms = platforms.unix; }; }