anchor.diff:  }:
   
   let
  +  inherit (lib)
  +    optionalString;
  +
     sources = {
       "5.5" = {
         version = "5.5.2";
  
positive.code:     util-linux_full
    ];
  
    postPatch = ''
      # ES_HOME defaults to install prefix which is read-only
      sed -i bin/elasticsearch{,-plugin} \
        -e 's,ES_HOME=`dirname "$SCRIPT"`/..,,'
  
negative.code:     sed -i bin/elasticsearch \
        -e '/x$ES_INCLUDE/,+16 d'
      rm -f bin/elasticsearch.in.sh
    '' + optionalString (channel == "6.0") ''
      # 1: ES_HOME defaults to install prefix which is read-only
      # 2: Remove broken code, we hard code the path anyways
      sed -i bin/elasticsearch-env \
        -e '/ES_HOME=`dirname "$SCRIPT"`/d' \
        -e '/basename "$ES_HOME"/,+3 d'
    '';
  
    configurePhase = ''
  