anchor.diff: -{ stdenv, fetchurl, makeWrapper, jre, utillinux }:
  +{ stdenv, fetchurl, makeWrapper, jre, utillinux, getopt }:
   
   with stdenv.lib;
   
  
positive.code:     # set ES_CLASSPATH and JAVA_HOME
      wrapProgram $out/bin/elasticsearch \
        --prefix ES_CLASSPATH : "$out/lib/${name}.jar":"$out/lib/*":"$out/lib/sigar/*" \
        ${optionalString (!stdenv.isDarwin) ''--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}"
    '';
  
    meta = {
  
negative.code: 
    patches = [ ./es-home.patch ];
  
    buildInputs = [ makeWrapper jre ] ++
      (if (!stdenv.isDarwin) then [utillinux] else [getopt]);
  
    installPhase = ''
      mkdir -p $out
  