Files
nixpkgs/pkgs/by-name/di/distribution/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.7 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
testers,
distribution,
}:
buildGoModule (finalAttrs: {
pname = "distribution";
version = "3.0.0";
src = fetchFromGitHub {
owner = "distribution";
repo = "distribution";
tag = "v${finalAttrs.version}";
hash = "sha256-myezQTEdH7kkpCoAeZMf5OBxT4Bz8Qx6vCnwim230RY=";
};
vendorHash = null;
checkFlags =
let
skippedTests = [
"TestHTTPChecker" # requires internet access
"TestInMemoryDriverSuite" # timeout after 10 minutes, looks like a deadlock
"TestGracefulShutdown" # fails on trace export, see https://github.com/distribution/distribution/issues/4696
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
__darwinAllowLocalNetworking = true;
passthru = {
tests.version = testers.testVersion {
package = distribution;
version = "v${finalAttrs.version}";
};
updateScript = nix-update-script { };
};
meta = {
description = "Toolkit to pack, ship, store, and deliver container content";
longDescription = ''
Distribution is a Open Source Registry implementation for storing and distributing container
images and other content using the OCI Distribution Specification. The goal of this project
is to provide a simple, secure, and scalable base for building a large scale registry solution
or running a simple private registry.
'';
homepage = "https://distribution.github.io/distribution/";
changelog = "https://github.com/distribution/distribution/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ katexochen ];
mainProgram = "registry";
platforms = lib.platforms.unix;
};
})