anchor.diff:  
     patches = [ ./es-home.patch ];
   
  -  buildInputs = [ makeWrapper jre utillinux ];
  +  buildInputs = [ makeWrapper jre ] ++ optional (!stdenv.isDarwin) utillinux;
   
     installPhase = ''
       mkdir -p $out
  
positive.code:     # set ES_CLASSPATH and JAVA_HOME
      wrapProgram $out/bin/elasticsearch \
        --prefix ES_CLASSPATH : "$out/lib/${name}.jar":"$out/lib/*":"$out/lib/sigar/*" \
        --prefix PATH : "${utillinux}/bin/" \
        --set JAVA_HOME "${jre}"
      wrapProgram $out/bin/elasticsearch-plugin \
        --prefix ES_CLASSPATH : "$out/lib/${name}.jar":"$out/lib/*":"$out/lib/sigar/*" --set JAVA_HOME "${jre}"
  
negative.code: { stdenv, fetchurl, makeWrapper, jre, utillinux }:
  
  with stdenv.lib;
  
  stdenv.mkDerivation rec {
    name = "elasticsearch-1.2.1";
  
  