anchor.diff: -{ stdenv, lib, fetchurl, runCommand, makeWrapper
  +{ stdenv, lib, fetchurl, fetchpatch, runCommand, makeWrapper
   , jdk, zip, unzip, bash, writeCBin, coreutils
   , which, python, perl, gnused, gnugrep, findutils
   # Always assume all markers valid (don't redownload dependencies).
  
positive.code: 
    sourceRoot = ".";
  
    patches = lib.optional enableNixHacks ./nix-hacks.patch;
  
    # Bazel expects several utils to be available in Bash even without PATH. Hence this hack.
  
  
negative.code:       cat tools/bash/runfiles/runfiles.bash >> runfiles.bash.tmp
        mv runfiles.bash.tmp tools/bash/runfiles/runfiles.bash
  
        patchShebangs .
      '';
      in lib.optionalString stdenv.hostPlatform.isDarwin darwinPatches
  