mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
containerd: 1.7.23 -> 2.0.0 (#356618)
This commit is contained in:
commit
d2f5c28d0d
4 changed files with 84 additions and 28 deletions
|
@ -55,6 +55,10 @@
|
||||||
|
|
||||||
- `gkraken` software and `hardware.gkraken.enable` option have been removed, use `coolercontrol` via `programs.coolercontrol.enable` option instead.
|
- `gkraken` software and `hardware.gkraken.enable` option have been removed, use `coolercontrol` via `programs.coolercontrol.enable` option instead.
|
||||||
|
|
||||||
|
- `containerd` has been updated to v2, which contains breaking changes. See the [containerd
|
||||||
|
2.0](https://github.com/containerd/containerd/blob/main/docs/containerd-2.0.md) documentation for more
|
||||||
|
details.
|
||||||
|
|
||||||
- the notmuch vim plugin now lives in a separate output of the `notmuch`
|
- the notmuch vim plugin now lives in a separate output of the `notmuch`
|
||||||
package. Installing `notmuch` will not bring the notmuch vim package anymore,
|
package. Installing `notmuch` will not bring the notmuch vim package anymore,
|
||||||
add `vimPlugins.notmuch-vim` to your (Neo)vim configuration if you want the
|
add `vimPlugins.notmuch-vim` to your (Neo)vim configuration if you want the
|
||||||
|
|
|
@ -67,7 +67,7 @@ in
|
||||||
systemd.services.containerd = {
|
systemd.services.containerd = {
|
||||||
description = "containerd - container runtime";
|
description = "containerd - container runtime";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" "local-fs.target" "dbus.service" ];
|
||||||
path = with pkgs; [
|
path = with pkgs; [
|
||||||
containerd
|
containerd
|
||||||
runc
|
runc
|
||||||
|
|
|
@ -53,6 +53,9 @@ rec {
|
||||||
pname = "docker-containerd";
|
pname = "docker-containerd";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
|
# We only need binaries
|
||||||
|
outputs = [ "out" ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "containerd";
|
owner = "containerd";
|
||||||
repo = "containerd";
|
repo = "containerd";
|
||||||
|
@ -62,6 +65,9 @@ rec {
|
||||||
|
|
||||||
buildInputs = oldAttrs.buildInputs
|
buildInputs = oldAttrs.buildInputs
|
||||||
++ lib.optionals withSeccomp [ libseccomp ];
|
++ lib.optionals withSeccomp [ libseccomp ];
|
||||||
|
|
||||||
|
# See above
|
||||||
|
installTargets = "install";
|
||||||
});
|
});
|
||||||
|
|
||||||
docker-tini = tini.overrideAttrs {
|
docker-tini = tini.overrideAttrs {
|
||||||
|
|
|
@ -1,56 +1,102 @@
|
||||||
{ lib
|
{
|
||||||
, fetchFromGitHub
|
lib,
|
||||||
, buildGoModule
|
stdenv,
|
||||||
, btrfs-progs
|
pkgsCross,
|
||||||
, go-md2man
|
btrfs-progs,
|
||||||
, installShellFiles
|
buildGoModule,
|
||||||
, util-linux
|
fetchFromGitHub,
|
||||||
, nixosTests
|
go-md2man,
|
||||||
, kubernetes
|
kubernetes,
|
||||||
|
nix-update-script,
|
||||||
|
nixosTests,
|
||||||
|
util-linux,
|
||||||
|
btrfsSupport ? btrfs-progs != null,
|
||||||
|
withMan ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "containerd";
|
pname = "containerd";
|
||||||
version = "1.7.23";
|
version = "2.0.0";
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"doc"
|
||||||
|
] ++ lib.optional withMan "man";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "containerd";
|
owner = "containerd";
|
||||||
repo = "containerd";
|
repo = "containerd";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-vuOefU1cZr1pKCYHKyDBx/ohghgPlXhK3a38PQKH0pc=";
|
hash = "sha256-DFAP+zjBYP2SpyD8KXGvI3i/PUZ6d4jdzGyFfr1lzj4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = "patchShebangs .";
|
||||||
|
|
||||||
vendorHash = null;
|
vendorHash = null;
|
||||||
|
|
||||||
nativeBuildInputs = [ go-md2man installShellFiles util-linux ];
|
strictDeps = true;
|
||||||
|
|
||||||
buildInputs = [ btrfs-progs ];
|
nativeBuildInputs = [
|
||||||
|
util-linux
|
||||||
|
] ++ lib.optional withMan go-md2man;
|
||||||
|
|
||||||
BUILDTAGS = lib.optionals (btrfs-progs == null) [ "no_btrfs" ];
|
buildInputs = lib.optional btrfsSupport btrfs-progs;
|
||||||
|
|
||||||
|
tags = lib.optional (!btrfsSupport) "no_btrfs";
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"PREFIX=${placeholder "out"}"
|
||||||
|
|
||||||
|
"BUILDTAGS=${toString tags}"
|
||||||
|
"REVISION=${src.rev}"
|
||||||
|
"VERSION=v${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
installTargets = [
|
||||||
|
"install"
|
||||||
|
"install-doc"
|
||||||
|
] ++ lib.optional withMan "install-man";
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
patchShebangs .
|
make $makeFlags
|
||||||
make binaries "VERSION=v${version}" "REVISION=${src.rev}"
|
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
install -Dm555 bin/* -t $out/bin
|
make $makeFlags $installTargets
|
||||||
installShellCompletion --bash contrib/autocomplete/ctr
|
|
||||||
installShellCompletion --zsh --name _ctr contrib/autocomplete/zsh_autocomplete
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests = { inherit (nixosTests) docker; } // kubernetes.tests;
|
passthru = {
|
||||||
|
tests = lib.optionalAttrs stdenv.hostPlatform.isLinux (
|
||||||
|
{
|
||||||
|
cross =
|
||||||
|
let
|
||||||
|
systemString = if stdenv.buildPlatform.isAarch64 then "gnu64" else "aarch64-multiplatform";
|
||||||
|
in
|
||||||
|
pkgsCross.${systemString}.containerd;
|
||||||
|
|
||||||
meta = with lib; {
|
inherit (nixosTests) docker;
|
||||||
changelog = "https://github.com/containerd/containerd/releases/tag/${src.rev}";
|
}
|
||||||
homepage = "https://containerd.io/";
|
// kubernetes.tests
|
||||||
|
);
|
||||||
|
|
||||||
|
updateScript = nix-update-script { };
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "Daemon to control runC";
|
description = "Daemon to control runC";
|
||||||
license = licenses.asl20;
|
homepage = "https://containerd.io/";
|
||||||
maintainers = with maintainers; [ offline vdemeester ];
|
changelog = "https://github.com/containerd/containerd/releases/tag/${version}";
|
||||||
platforms = platforms.linux;
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = with lib.maintainers; [
|
||||||
|
offline
|
||||||
|
vdemeester
|
||||||
|
getchoo
|
||||||
|
];
|
||||||
|
mainProgram = "containerd";
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue