anchor.diff:          "$cnfOrig" > ./texmf.cnf
   
         patchCnfLua "./texmfcnf.lua"
  +
  +      mkdir $out/share/texmf-local
   
         rm updmap.cfg
       )
  
positive.code:         rm ./texmfcnf.lua
          sed \
            -e 's,texmf-dist,texmf,g' \
            -e 's,texmf-local,texmf,g' \
            -e "s,\(TEXMFLOCAL[ ]*=[ ]*\)[^\,]*,\1\"$out/share/texmf\",g" \
            -e "s,\$SELFAUTOLOC,$out,g" \
            -e "s,selfautodir:/,$out/share/,g" \
            -e "s,selfautodir:,$out/share/,g" \
  
negative.code:     export TEXMFSYSVAR="$out/share/texmf-var"
      export PERL5LIB="$out/share/texmf/scripts/texlive"
    '' +
      # patch texmf-dist  -> $out/share/texmf
      # patch texmf-local -> $out/share/texmf-local
      # TODO: perhaps do lua actions?
      # tried inspiration from install-tl, sub do_texmf_cnf
    ''
  