anchor.diff:  
   let
     cfg = config.services.elasticsearch;
  -
  -  es6 = builtins.compareVersions cfg.package.version "6" >= 0;
   
     esConfig = ''
       network.host: ${cfg.listenAddress}
  
positive.code:       path = [ pkgs.inetutils ];
        environment = {
          ES_HOME = cfg.dataDir;
          ES_JAVA_OPTS = toString (optional (!es6) [ "-Des.path.conf=${configDir}" ]
            ++ cfg.extraJavaOptions);
        } // optionalAttrs es6 {
          ES_PATH_CONF = configDir;
        };
        serviceConfig = {
  
negative.code:         rm -f "${configDir}/logging.yml"
          cp ${loggingConfigFile} ${configDir}/${loggingConfigFilename}
          mkdir -p ${configDir}/scripts
          cp ${cfg.package}/config/jvm.options ${configDir}/jvm.options
          # redirect jvm logs to the data directory
          mkdir -m 0700 -p ${cfg.dataDir}/logs
          ${pkgs.sd}/bin/sd 'logs/gc.log' '${cfg.dataDir}/logs/gc.log' ${configDir}/jvm.options \
  