anchor.diff:    # Wrap manually because we wrap just a small number of executables.
     dontWrapQtApps = true;
   
  -  buildInputs =
  -    [ acpica-tools dev86 libxslt libxml2 xorgproto libX11 libXext libXcursor libIDL
  -      libcap glib lvm2 alsa-lib curl libvpx pam makeself perl
  -      libXmu libpng libopus python ]
  +  buildInputs = [
  +    acpica-tools dev86 libxslt libxml2 xorgproto libX11 libXext libXcursor libIDL
  +    libcap glib lvm2 alsa-lib curl libvpx pam makeself perl
  +    libXmu libpng libopus python3 ]
       ++ optional javaBindings jdk
  -    ++ optional pythonBindings python # Python is needed even when not building bindings
  +    ++ optional pythonBindings python3 # Python is needed even when not building bindings
       ++ optional pulseSupport libpulseaudio
  -    ++ optionals (headless) [ libXrandr libGL ]
  +    ++ optionals headless [ libXrandr libGL ]
       ++ optionals (!headless) [ qtbase qtx11extras libXinerama SDL ]
  -    ++ optionals (enableWebService) [ gsoap zlib ];
  +    ++ optionals enableWebService [ gsoap zlib ];
   
     hardeningDisable = [ "format" "fortify" "pic" "stackprotector" ];
   
     prePatch = ''
       set -x
       sed -e 's@MKISOFS --version@MKISOFS -version@' \
  -        -e 's@PYTHONDIR=.*@PYTHONDIR=${if pythonBindings then python else ""}@' \
  +        -e 's@PYTHONDIR=.*@PYTHONDIR=${lib.optionalString pythonBindings python3}@' \
           -e 's@CXX_FLAGS="\(.*\)"@CXX_FLAGS="-std=c++11 \1"@' \
           ${optionalString (!headless) ''
           -e 's@TOOLQT5BIN=.*@TOOLQT5BIN="${getDev qtbase}/bin"@' \
  
positive.code:     PATH_QT5_X11_EXTRAS_INC        := ${getDev qtx11extras}/include
      TOOL_QT5_LRC                   := ${getDev qttools}/bin/lrelease
      ''}
      ${optionalString (enableWebService) ''
      # fix gsoap missing zlib include and produce errors with --as-needed
      VBOX_GSOAP_CXX_LIBS := gsoapssl++ z
      ''}
  
negative.code: 
      ${optionalString (extensionPack != null) ''
        mkdir -p "$share"
        "${fakeroot}/bin/fakeroot" "${stdenv.shell}" <<EOF
        "$libexec/VBoxExtPackHelperApp" install \
          --base-dir "$share/ExtensionPacks" \
          --cert-dir "$share/ExtPackCertificates" \
          --name "Oracle VM VirtualBox Extension Pack" \
          --tarball "${extensionPack}" \
          --sha-256 "${extensionPack.outputHash}"
        EOF
      ''}
  
      ${optionalString (!headless) ''
  