anchor.diff:  
     patches = [
       ./no-ldconfig.patch
  +  ] ++ optionals hasDistutilsCxxPatch [
  +    # Fix for http://bugs.python.org/issue1222585
  +    # Upstream distutils is calling C compiler to compile C++ code, which
  +    # only works for GCC and Apple Clang. This makes distutils to call C++
  +    # compiler when needed.
  +    (fetchpatch {
  +      url = "https://bugs.python.org/file47669/python-3.8-distutils-C++.patch";
  +      sha256 = "0s801d7ww9yrk6ys053jvdhl0wicbznx08idy36f1nrrxsghb3ii";
  +    })
     ];
   
     postPatch = ''
  
positive.code:     ++ optionals x11Support [ tcl tk libX11 xproto ]
      ++ optionals stdenv.isDarwin [ CF configd ];
  
  in stdenv.mkDerivation {
    name = "python3-${version}";
    pythonVersion = majorVersion;
  
negative.code:   passthru = let
      pythonPackages = callPackage ../../../../../top-level/python-packages.nix {python=self; overrides=packageOverrides;};
    in rec {
      inherit libPrefix sitePackages x11Support hasDistutilsCxxPatch;
      executable = "${libPrefix}m";
      buildEnv = callPackage ../../wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; };
      withPackages = import ../../with-packages.nix { inherit buildEnv pythonPackages;};
  