Merge pull request #132717 from maxeaubrey/docker_20.10.8

authored by

Sandro and committed by
GitHub
5829e325 6327a87b

+65 -11
+53
pkgs/applications/virtualization/containerd/1.4.nix
···
··· 1 + { lib 2 + , fetchFromGitHub 3 + , buildGoPackage 4 + , btrfs-progs 5 + , go-md2man 6 + , installShellFiles 7 + , util-linux 8 + , nixosTests 9 + }: 10 + 11 + buildGoPackage rec { 12 + pname = "containerd"; 13 + version = "1.4.9"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "containerd"; 17 + repo = "containerd"; 18 + rev = "v${version}"; 19 + sha256 = "1ykikks6ihgg899ibk9m9m0hqrbss0cx7l7z4yjb873b10bacj52"; 20 + }; 21 + 22 + goPackagePath = "github.com/containerd/containerd"; 23 + outputs = [ "out" "man" ]; 24 + 25 + nativeBuildInputs = [ go-md2man installShellFiles util-linux ]; 26 + 27 + buildInputs = [ btrfs-progs ]; 28 + 29 + buildFlags = [ "VERSION=v${version}" "REVISION=${src.rev}" ]; 30 + 31 + buildPhase = '' 32 + cd go/src/${goPackagePath} 33 + patchShebangs . 34 + make binaries man $buildFlags 35 + ''; 36 + 37 + installPhase = '' 38 + install -Dm555 bin/* -t $out/bin 39 + installManPage man/*.[1-9] 40 + installShellCompletion --bash contrib/autocomplete/ctr 41 + installShellCompletion --zsh --name _ctr contrib/autocomplete/zsh_autocomplete 42 + ''; 43 + 44 + passthru.tests = { inherit (nixosTests) docker; }; 45 + 46 + meta = with lib; { 47 + homepage = "https://containerd.io/"; 48 + description = "A daemon to control runC"; 49 + license = licenses.asl20; 50 + maintainers = with maintainers; [ ]; 51 + platforms = platforms.linux; 52 + }; 53 + }
+11 -11
pkgs/applications/virtualization/docker/default.nix
··· 12 # package dependencies 13 , stdenv, fetchFromGitHub, buildGoPackage 14 , makeWrapper, installShellFiles, pkg-config, glibc 15 - , go-md2man, go, containerd, runc, docker-proxy, tini, libtool 16 , sqlite, iproute2, lvm2, systemd, docker-buildx 17 , btrfs-progs, iptables, e2fsprogs, xz, util-linux, xfsprogs, git 18 , procps, libseccomp ··· 33 patches = []; 34 }); 35 36 - docker-containerd = containerd.overrideAttrs (oldAttrs: { 37 name = "docker-containerd-${version}"; 38 inherit version; 39 src = fetchFromGitHub { ··· 210 homepage = "https://www.docker.com/"; 211 description = "An open source project to pack, ship and run any application as a lightweight container"; 212 license = licenses.asl20; 213 - maintainers = with maintainers; [ offline tailhook vdemeester periklis mikroskeem ]; 214 platforms = with platforms; linux ++ darwin; 215 }; 216 ··· 221 # Get revisions from 222 # https://github.com/moby/moby/tree/${version}/hack/dockerfile/install/* 223 docker_20_10 = callPackage dockerGen rec { 224 - version = "20.10.7"; 225 rev = "v${version}"; 226 - sha256 = "1r854jrjph4v1n5lr82z0cl0241ycili4qr3qh3k3bmqx790cds3"; 227 moby-src = fetchFromGitHub { 228 owner = "moby"; 229 repo = "moby"; 230 rev = "v${version}"; 231 - sha256 = "0xhn11kgcbzda4z9j0rflvq0nfivizh3jrzhanwn5vnghafy4zqw"; 232 }; 233 - runcRev = "b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7"; # v1.0.0-rc95 234 - runcSha256 = "18sbvmlvb6kird4w3rqsfrjdj7n25firabvdxsl0rxjfy9r1g2xb"; 235 - containerdRev = "12dca9790f4cb6b18a6a7a027ce420145cb98ee7"; # v1.5.1 236 - containerdSha256 = "16q34yiv5q98b9d5vgy1lmmppg8agrmnfd1kzpakkf4czkws0p4d"; 237 - tiniRev = "de40ad007797e0dcd8b7126f27bb87401d224240"; # v0.19.0 238 tiniSha256 = "1h20i3wwlbd8x4jr2gz68hgklh0lb0jj7y5xk1wvr8y58fip1rdn"; 239 }; 240 }
··· 12 # package dependencies 13 , stdenv, fetchFromGitHub, buildGoPackage 14 , makeWrapper, installShellFiles, pkg-config, glibc 15 + , go-md2man, go, containerd_1_4, runc, docker-proxy, tini, libtool 16 , sqlite, iproute2, lvm2, systemd, docker-buildx 17 , btrfs-progs, iptables, e2fsprogs, xz, util-linux, xfsprogs, git 18 , procps, libseccomp ··· 33 patches = []; 34 }); 35 36 + docker-containerd = containerd_1_4.overrideAttrs (oldAttrs: { 37 name = "docker-containerd-${version}"; 38 inherit version; 39 src = fetchFromGitHub { ··· 210 homepage = "https://www.docker.com/"; 211 description = "An open source project to pack, ship and run any application as a lightweight container"; 212 license = licenses.asl20; 213 + maintainers = with maintainers; [ offline tailhook vdemeester periklis mikroskeem maxeaubrey ]; 214 platforms = with platforms; linux ++ darwin; 215 }; 216 ··· 221 # Get revisions from 222 # https://github.com/moby/moby/tree/${version}/hack/dockerfile/install/* 223 docker_20_10 = callPackage dockerGen rec { 224 + version = "20.10.8"; 225 rev = "v${version}"; 226 + sha256 = "sha256-betZIAH4mFpb/OywWyixCjVmy5EGTrg+WbxDXkVRrsI="; 227 moby-src = fetchFromGitHub { 228 owner = "moby"; 229 repo = "moby"; 230 rev = "v${version}"; 231 + sha256 = "1pjjdwzad2z337zwby88w5zwl71ch4lcwbw0sy8slvyjv387jjlm"; 232 }; 233 + runcRev = "v1.0.1"; # v1.0.1 234 + runcSha256 = "1zfa1zr8i9n1915nyv7hyaj7q27cy7fiihk9rr1377ayaqg3mpn5"; 235 + containerdRev = "v1.4.9"; # v1.4.9 236 + containerdSha256 = "1ykikks6ihgg899ibk9m9m0hqrbss0cx7l7z4yjb873b10bacj52"; 237 + tiniRev = "v0.19.0"; # v0.19.0 238 tiniSha256 = "1h20i3wwlbd8x4jr2gz68hgklh0lb0jj7y5xk1wvr8y58fip1rdn"; 239 }; 240 }
+1
pkgs/top-level/all-packages.nix
··· 23774 comical = callPackage ../applications/graphics/comical { }; 23775 23776 containerd = callPackage ../applications/virtualization/containerd { }; 23777 23778 convchain = callPackage ../tools/graphics/convchain {}; 23779
··· 23774 comical = callPackage ../applications/graphics/comical { }; 23775 23776 containerd = callPackage ../applications/virtualization/containerd { }; 23777 + containerd_1_4 = callPackage ../applications/virtualization/containerd/1.4.nix { }; 23778 23779 convchain = callPackage ../tools/graphics/convchain {}; 23780