anchor.diff:  { stdenv, fetchzip, makeWrapper, jre, pythonPackages, coreutils, hadoop
   , RSupport? true, R
  -, mesosSupport ? true, mesos
   }:
   
   with stdenv.lib;
  
positive.code: 
    src = fetchzip {
      url    = "mirror://apache/spark/${pname}-${version}/${pname}-${version}-bin-without-hadoop.tgz";
      sha256 = "1a9w5k0207fysgpxx6db3a00fs5hdc2ncx99x4ccy2s0v5ndc66g"; 
    };
  
    buildInputs = [ makeWrapper jre pythonPackages.python pythonPackages.numpy ]
      ++ optional RSupport R
      ++ optional mesosSupport mesos;
  
    untarDir = "${pname}-${version}-bin-without-hadoop";
    installPhase = ''
  
negative.code:     ${optionalString RSupport
        ''export SPARKR_R_SHELL="${R}/bin/R"
          export PATH=$PATH:"${R}/bin/R"''}
      EOF
  
      for n in $(find $out/lib/${untarDir}/bin -type f ! -name "*.*"); do
  