Merge pull request #125946 from mikroskeem/docker-update

authored by

Sandro and committed by
GitHub
1b709763 fc50ff8d

+17 -18
+17 -18
pkgs/applications/virtualization/docker/default.nix
··· 8 8 , moby-src 9 9 , runcRev, runcSha256 10 10 , containerdRev, containerdSha256 11 - , tiniRev, tiniSha256, buildxSupport ? false 11 + , tiniRev, tiniSha256, buildxSupport ? true 12 12 # package dependencies 13 13 , stdenv, fetchFromGitHub, buildGoPackage 14 14 , makeWrapper, installShellFiles, pkg-config, glibc ··· 77 77 78 78 extraPath = optionals (stdenv.isLinux) (makeBinPath [ iproute2 iptables e2fsprogs xz xfsprogs procps util-linux git ]); 79 79 80 + postPatch = '' 81 + patchShebangs hack/make.sh hack/make/ 82 + ''; 83 + 80 84 buildPhase = '' 81 85 export GOCACHE="$TMPDIR/go-cache" 82 86 # build engine ··· 88 92 cd - 89 93 ''; 90 94 91 - postPatch = '' 92 - patchShebangs . 93 - substituteInPlace ./hack/make.sh --replace libsystemd-journal libsystemd 94 - ''; 95 - 96 95 installPhase = '' 97 96 cd ./go/src/${goPackagePath} 98 97 install -Dm755 ./bundles/dynbinary-daemon/dockerd $out/libexec/docker/dockerd ··· 144 143 sqlite lvm2 btrfs-progs systemd libseccomp 145 144 ] ++ optionals (buildxSupport) [ docker-buildx ]; 146 145 146 + postPatch = '' 147 + patchShebangs man scripts/build/ 148 + substituteInPlace ./scripts/build/.variables --replace "set -eu" "" 149 + '' + optionalString buildxSupport '' 150 + substituteInPlace ./cli-plugins/manager/manager_unix.go --replace /usr/libexec/docker/cli-plugins \ 151 + ${lib.strings.makeSearchPathOutput "bin" "libexec/docker/cli-plugins" [docker-buildx]} 152 + ''; 153 + 147 154 # Keep eyes on BUILDTIME format - https://github.com/docker/cli/blob/${version}/scripts/build/.variables 148 155 buildPhase = '' 149 156 export GOCACHE="$TMPDIR/go-cache" ··· 160 167 export CGO_ENABLED=1 161 168 go build -tags pkcs11 --ldflags "$LDFLAGS" github.com/docker/cli/cmd/docker 162 169 cd - 163 - ''; 164 - 165 - postPatch = '' 166 - patchShebangs . 167 - substituteInPlace ./scripts/build/.variables --replace "set -eu" "" 168 - '' + optionalString buildxSupport '' 169 - substituteInPlace ./cli-plugins/manager/manager_unix.go --replace /usr/libexec/docker/cli-plugins \ 170 - ${lib.strings.makeSearchPathOutput "bin" "libexec/docker/cli-plugins" [docker-buildx]} 171 170 ''; 172 171 173 172 outputs = ["out" "man"]; ··· 211 210 homepage = "https://www.docker.com/"; 212 211 description = "An open source project to pack, ship and run any application as a lightweight container"; 213 212 license = licenses.asl20; 214 - maintainers = with maintainers; [ offline tailhook vdemeester periklis ]; 213 + maintainers = with maintainers; [ offline tailhook vdemeester periklis mikroskeem ]; 215 214 platforms = with platforms; linux ++ darwin; 216 215 }; 217 216 ··· 222 221 # Get revisions from 223 222 # https://github.com/moby/moby/tree/${version}/hack/dockerfile/install/* 224 223 docker_20_10 = callPackage dockerGen rec { 225 - version = "20.10.6"; 224 + version = "20.10.7"; 226 225 rev = "v${version}"; 227 - sha256 = "15kknb26vyzjgqmn8r81a1sy1i5br6bvngqd5xljihppnxvp2gvl"; 226 + sha256 = "1r854jrjph4v1n5lr82z0cl0241ycili4qr3qh3k3bmqx790cds3"; 228 227 moby-src = fetchFromGitHub { 229 228 owner = "moby"; 230 229 repo = "moby"; 231 230 rev = "v${version}"; 232 - sha256 = "1l4ra9bsvydaxd2fy7dgxp7ynpp0mrlwvcdhxiafw596559ab6qk"; 231 + sha256 = "0xhn11kgcbzda4z9j0rflvq0nfivizh3jrzhanwn5vnghafy4zqw"; 233 232 }; 234 233 runcRev = "b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7"; # v1.0.0-rc95 235 234 runcSha256 = "18sbvmlvb6kird4w3rqsfrjdj7n25firabvdxsl0rxjfy9r1g2xb";