anchor.diff:        done
       '';
     };
  +
  +  withLuaJIT = !(stdenv.hostPlatform.isPower && stdenv.hostPlatform.is64bit);
   in rec { # un-indented
   
   inherit (common) cleanBrokenLinks;
  
positive.code: };
  
  
  inherit (core-big) metafont mflua metapost luatex xetex;
  core-big = stdenv.mkDerivation { #TODO: upmendex
    pname = "texlive-core-big.bin";
    inherit version;
  
negative.code: 
    # now distribute stuff into outputs, roughly as upstream TL
    # (uninteresting stuff remains in $out, typically duplicates from `core`)
    outputs = [
      "out"
      "metafont"
      "mflua"
      "metapost"
      "luatex"
      "luajittex"
      "xetex"
    ];
    postInstall = ''
      for output in $outputs; do
        mkdir -p "''${!output}/bin"
      done
  
      mv "$out/bin"/{inimf,mf,mf-nowin} "$metafont/bin/"
      mv "$out/bin"/mflua{,-nowin} "$mflua/bin/"
      mv "$out/bin"/{*tomp,mfplain,*mpost} "$metapost/bin/"
      mv "$out/bin"/{luatex,texlua,texluac} "$luatex/bin/"
      mv "$out/bin"/xetex "$xetex/bin/"
    '' + stdenv.lib.optionalString withLuaJIT ''
      mv "$out/bin"/mfluajit{,-nowin} "$mflua/bin/"
      mv "$out/bin"/{luajittex,texluajit,texluajitc} "$luajittex/bin/"
    '' ;
  };
  
  
  