anchor.diff: -{ stdenv, fetchurl, jdk, zip, unzip, which, bash, binutils, coreutils, makeWrapper }:
  +{ stdenv, fetchurl, jdk, zip, unzip, bash, makeWrapper }:
   
   stdenv.mkDerivation rec {
   
  
positive.code:   sourceRoot = ".";
  
    postPatch = ''
      patchShebangs .
      for f in \
        src/main/java/com/google/devtools/build/lib/analysis/CommandHelper.java \
        src/main/java/com/google/devtools/build/lib/bazel/rules/BazelConfiguration.java \
        src/test/java/com/google/devtools/build/lib/shell/CommandTest.java \
        src/test/java/com/google/devtools/build/lib/shell/InterruptibleTest.java \
        src/test/java/com/google/devtools/build/lib/shell/LoadTest.java \
        src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java \
        src/test/java/com/google/devtools/build/lib/standalone/StandaloneSpawnStrategyTest.java
      do
        substituteInPlace $f \
          --replace /bin/bash ${bash}/bin/bash \
          --replace /bin/cat ${coreutils}/bin/cat \
          --replace /bin/echo ${coreutils}/bin/echo \
          --replace /bin/false ${coreutils}/bin/false \
          --replace /bin/pwd ${coreutils}/bin/pwd \
          --replace /bin/sleep ${coreutils}/bin/sleep \
          --replace /bin/true ${coreutils}/bin/true
      done
    '';
  
  
negative.code: 
    propagatedBuildInputs = [
      bash
    ];
  
    # If TMPDIR is in the unpack dir we run afoul of blaze's infinite symlink
  