lol

Merge pull request #225309 from mikroskeem/update/docker-23-x

authored by

maxine and committed by
GitHub
9313322e 7af91863

+26 -12
+25 -11
pkgs/applications/virtualization/docker/default.nix
··· 97 97 98 98 extraUserPath = lib.optionals (stdenv.isLinux && !clientOnly) (lib.makeBinPath [ rootlesskit slirp4netns fuse-overlayfs ]); 99 99 100 - patches = [ 100 + patches = lib.optionals (lib.versionOlder version "23") [ 101 101 # This patch incorporates code from a PR fixing using buildkit with the ZFS graph driver. 102 102 # It could be removed when a version incorporating this patch is released. 103 103 (fetchpatch { ··· 105 105 url = "https://github.com/moby/moby/pull/43136.patch"; 106 106 hash = "sha256-1WZfpVnnqFwLMYqaHLploOodls0gHF8OCp7MrM26iX8="; 107 107 }) 108 + ] ++ lib.optionals (lib.versionOlder version "23.0.5") [ 108 109 (fetchpatch { 109 110 name = "fix-issue-with-go-1.20.6.patch"; 110 111 url = "https://github.com/moby/moby/pull/45972.patch"; ··· 181 182 nativeBuildInputs = [ 182 183 makeWrapper pkg-config go-md2man go libtool installShellFiles 183 184 ]; 184 - buildInputs = lib.optional (!clientOnly) sqlite 185 - ++ lib.optional withLvm lvm2 186 - ++ lib.optional withBtrfs btrfs-progs 187 - ++ lib.optional withSystemd systemd 188 - ++ lib.optional withSeccomp libseccomp 189 - ++ plugins; 185 + 186 + buildInputs = plugins ++ lib.optionals (lib.versionAtLeast version "23") [ 187 + glibc 188 + glibc.static 189 + ]; 190 190 191 - patches = [ 191 + patches = lib.optionals (lib.versionOlder version "23.0.5") [ 192 192 (fetchpatch { 193 193 name = "fix-issue-with-go-1.20.6.patch"; 194 194 url = "https://github.com/docker/cli/pull/4441.patch"; ··· 222 222 cd - 223 223 ''; 224 224 225 - outputs = ["out" "man"]; 225 + outputs = ["out"] ++ lib.optional (lib.versionOlder version "23") "man"; 226 226 227 227 installPhase = '' 228 228 cd ./go/src/${goPackagePath} ··· 244 244 installShellCompletion --bash ./contrib/completion/bash/docker 245 245 installShellCompletion --fish ./contrib/completion/fish/docker.fish 246 246 installShellCompletion --zsh ./contrib/completion/zsh/_docker 247 - '' + lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) '' 247 + '' + lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform && lib.versionOlder version "23") '' 248 248 # Generate man pages from cobra commands 249 249 echo "Generate man pages from cobra" 250 250 mkdir -p ./man/man1 251 251 go build -o ./gen-manpages github.com/docker/cli/man 252 252 ./gen-manpages --root . --target ./man/man1 253 - '' + '' 253 + '' + lib.optionalString (lib.versionOlder version "23") '' 254 254 # Generate legacy pages from markdown 255 255 echo "Generate legacy manpages" 256 256 ./man/md2man-all.sh -q ··· 289 289 runcHash = "sha256-r5as3hb0zt+XPfxAPeH+YIc/n6IRlscPOZMGfhVE5C4="; 290 290 containerdRev = "v1.6.20"; 291 291 containerdHash = "sha256-Nd3S6hmvA8LBFUN4XaQJMApbmwGIp6GTnFQimnYagZg="; 292 + tiniRev = "v0.19.0"; 293 + tiniHash = "sha256-ZDKu/8yE5G0RYFJdhgmCdN3obJNyRWv6K/Gd17zc1sI="; 294 + }; 295 + 296 + docker_24 = callPackage dockerGen rec { 297 + version = "24.0.5"; 298 + cliRev = "v${version}"; 299 + cliHash = "sha256-u1quVGTx/p8BDyRn33vYyyuE5BOhWMnGQ5uVX0PZ5mg="; 300 + mobyRev = "v${version}"; 301 + mobyHash = "sha256-JQjRz1fHZlQRkNw/R8WWLV8caN3/U3mrKKQXbZt2crU="; 302 + runcRev = "v1.1.8"; 303 + runcHash = "sha256-rDJYEc64KW4Qa3Eg2oUjJqIKrg6THb5hxQFFbvb9Zp4="; 304 + containerdRev = "v1.7.1"; 305 + containerdHash = "sha256-WwedtcsrDQwMQcKFO5nnPiHyGJpl5hXZlmpbBe1/ftY="; 292 306 tiniRev = "v0.19.0"; 293 307 tiniHash = "sha256-ZDKu/8yE5G0RYFJdhgmCdN3obJNyRWv6K/Gd17zc1sI="; 294 308 };
+1 -1
pkgs/top-level/all-packages.nix
··· 30797 30797 dnglab = callPackage ../tools/graphics/dnglab { }; 30798 30798 30799 30799 inherit (callPackage ../applications/virtualization/docker {}) 30800 - docker_20_10; 30800 + docker_20_10 docker_24; 30801 30801 30802 30802 docker = docker_20_10; 30803 30803 docker-client = docker.override { clientOnly = true; };