anchor.diff:        done
       '';
     };
  +
  +  withLuaJIT = !(stdenv.hostPlatform.isPower && stdenv.hostPlatform.is64bit);
   in rec { # un-indented
   
   inherit (common) cleanBrokenLinks;
  
positive.code:   configureFlags = common.configureFlags
      ++ withSystemLibs [ "kpathsea" "ptexenc" "cairo" "harfbuzz" "icu" "graphite2" ]
      ++ map (prog: "--disable-${prog}") # don't build things we already have
        [ "tex" "ptex" "eptex" "uptex" "euptex" "aleph" "pdftex"
          "web-progs" "synctex"
          # luajittex is mostly not needed, see:
          # http://tex.stackexchange.com/questions/97999/when-to-use-luajittex-in-favour-of-luatex
          "luajittex" "mfluajit"
        ];
  
    configureScript = ":";
  
    # we use static libtexlua, because it's only used by a single binary
    postConfigure = ''
      mkdir ./WorkDir && cd ./WorkDir
      for path in libs/{teckit,lua53} texk/web2c; do
        (
          if [[ "$path" =~ "libs/lua5" ]]; then
            extraConfig="--enable-static --disable-shared"
          else
            extraConfig=""
  
negative.code: };
  
  
  inherit (core-big) metafont mflua metapost luatex luajittex xetex;
  core-big = stdenv.mkDerivation { #TODO: upmendex
    pname = "texlive-core-big.bin";
    inherit version;
  