2023-12-26 15:01:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
}:
|
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";
|
2023-12-26 15:01:15 +00:00
|
|
|
version = "3.0.0-alpha.1";
|
2016-09-18 18:50:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "docker";
|
|
|
|
repo = "distribution";
|
2023-12-26 15:01:15 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-reguAtBkEC9OMUTdCtFY6l0fkk28VoA0IlPcQ0sz84I=";
|
2016-09-18 18:50:38 +00:00
|
|
|
};
|
|
|
|
|
2023-12-26 15:01:15 +00:00
|
|
|
patches = [
|
|
|
|
# fix: load gcs credentials and client inside DriverConstructor
|
|
|
|
# Needed to pass the tests. Remove with next update.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/distribution/distribution/commit/14366a2dff6a8f595e39d258085381731b43cec6.diff";
|
|
|
|
hash = "sha256-0ns9JuIeLBzRLMVxY6uaWTIYcRRbuwQ+n9tmK+Pvf4U=";
|
|
|
|
})
|
|
|
|
# fix: add missing skip in s3 driver test
|
|
|
|
# Needed to pass the tests. Remove with next update.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/distribution/distribution/commit/6908e0d5facd31ed32046df03a09040c964be0b3.patch";
|
|
|
|
hash = "sha256-ww+BwBGw+dkZ2FhVzynehR+sNYCgq8/KkPDP9ac6NWg=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# TestHTTPChecker: requires internet access.
|
|
|
|
# TestInMemoryDriverSuite: timeout after 10 minutes, looks like a deadlock.
|
|
|
|
"-skip=^TestHTTPChecker$|^TestInMemoryDriverSuite$"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-06-07 08:04:29 +00:00
|
|
|
description = "Docker toolset to pack, ship, store, and deliver content";
|
2016-09-18 18:50:38 +00:00
|
|
|
license = licenses.asl20;
|
2023-10-24 11:09:45 +00:00
|
|
|
maintainers = [];
|
2016-09-18 18:50:38 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|