anchor.diff:      '';
   
       # systemd 230 no longer has libsystemd-journal as a separate entity from libsystemd
  -    patchPhase = ''
  +    postPatch = ''
         substituteInPlace ./components/cli/scripts/build/.variables --replace "set -eu" ""
       '' + optionalString (stdenv.isLinux) ''
         patchShebangs .
  
positive.code:     extraPath = optionals (stdenv.isLinux) (makeBinPath [ iproute iptables e2fsprogs xz xfsprogs procps utillinux git ]);
  
      installPhase = optionalString (stdenv.isLinux) ''
        install -Dm755 ./components/engine/bundles/dynbinary-daemon/dockerd $out/libexec/docker/dockerd
  
        makeWrapper $out/libexec/docker/dockerd $out/bin/dockerd \
  
negative.code:       installShellCompletion --zsh ./components/cli/contrib/completion/zsh/_docker
  
        # Include contributed man pages (cli)
        cd ./components/cli
      '' + lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
        # Generate man pages from cobra commands
        echo "Generate man pages from cobra"
        mkdir -p ./man/man1
        go build -o ./gen-manpages github.com/docker/cli/man
        ./gen-manpages --root . --target ./man/man1
      '' + ''
        # Generate legacy pages from markdown
        echo "Generate legacy manpages"
        ./man/md2man-all.sh -q
  