2024-07-11 09:10:34 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
nix-update-script,
|
|
|
|
testers,
|
|
|
|
distribution,
|
2023-12-26 15:01:15 +00:00
|
|
|
}:
|
2016-09-18 18:50:38 +00:00
|
|
|
|
2023-12-26 15:01:15 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "distribution";
|
2024-11-08 08:57:03 +00:00
|
|
|
version = "3.0.0-rc.1";
|
2016-09-18 18:50:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-12-26 15:20:18 +00:00
|
|
|
owner = "distribution";
|
2016-09-18 18:50:38 +00:00
|
|
|
repo = "distribution";
|
2023-12-26 15:01:15 +00:00
|
|
|
rev = "v${version}";
|
2024-11-08 08:57:03 +00:00
|
|
|
hash = "sha256-dfy3P8zAFlni2heQcz61+sjivHE97Syh/ICreTgxUAM=";
|
2016-09-18 18:50:38 +00:00
|
|
|
};
|
|
|
|
|
2023-12-26 15:01:15 +00:00
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# TestHTTPChecker: requires internet access.
|
|
|
|
# TestInMemoryDriverSuite: timeout after 10 minutes, looks like a deadlock.
|
|
|
|
"-skip=^TestHTTPChecker$|^TestInMemoryDriverSuite$"
|
|
|
|
];
|
|
|
|
|
2023-12-26 15:24:29 +00:00
|
|
|
passthru = {
|
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = distribution;
|
|
|
|
version = "v${version}";
|
|
|
|
};
|
2023-12-26 15:29:57 +00:00
|
|
|
updateScript = nix-update-script { };
|
2023-12-26 15:24:29 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-12-26 15:20:18 +00:00
|
|
|
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${version}";
|
2016-09-18 18:50:38 +00:00
|
|
|
license = licenses.asl20;
|
2023-12-26 15:20:18 +00:00
|
|
|
maintainers = [ ];
|
|
|
|
mainProgram = "registry";
|
2016-09-18 18:50:38 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|