anchor.diff:  , lr, xe, zip, unzip, bash, writeCBin, coreutils
   , which, gawk, gnused, gnutar, gnugrep, gzip, findutils
   # updater
  -, python3, writeScript
  +, python27, python3, writeScript
   # Apple dependencies
   , cctools, libcxx, CoreFoundation, CoreServices, Foundation
   # Allow to independently override the jdks used to build and run respectively
  
positive.code:     '';
  
      genericPatches = ''
        # Substitute python's stub shebang to plain python path. (see TODO add pr URL)
        # See also `postFixup` where python is added to $out/nix-support
        substituteInPlace src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt \
            --replace "#!/usr/bin/env python" "#!${python3}/bin/python"
  
        # md5sum is part of coreutils
        sed -i 's|/sbin/md5|md5sum|' \
  
negative.code:         # Only files containing /bin are taken into account.
          substituteInPlace "$path" \
            --replace /bin/bash ${customBash}/bin/bash \
            --replace "/usr/bin/env bash" ${customBash}/bin/bash \
            --replace "/usr/bin/env python" ${python3}/bin/python \
            --replace /usr/bin/env ${coreutils}/bin/env \
            --replace /bin/true ${coreutils}/bin/true
        done
  