anchor.diff:    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"
  +      ([ "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"
  -      ];
  +      ] ++ stdenv.lib.optionals (!withLuaJIT) [ "luajittex" "mfluajit" ]);
   
     configureScript = ":";
   
     # we use static libtexlua, because it's only used by a single binary
  -  postConfigure = ''
  +  postConfigure = let
  +    luajit = stdenv.lib.optionalString withLuaJIT ",luajit";
  +  in ''
       mkdir ./WorkDir && cd ./WorkDir
  -    for path in libs/{teckit,lua53} texk/web2c; do
  +    for path in libs/{teckit,lua53${luajit}} texk/web2c; do
         (
  -        if [[ "$path" =~ "libs/lua5" ]]; then
  +        if [[ "$path" =~ "libs/lua" ]]; then
             extraConfig="--enable-static --disable-shared"
           else
             extraConfig=""
  
positive.code:       done
      '';
    };
  in rec { # un-indented
  
  inherit (common) cleanBrokenLinks;
  
negative.code: };
  
  
  inherit (core-big) metafont mflua metapost luatex luajittex xetex;
  core-big = stdenv.mkDerivation { #TODO: upmendex
    pname = "texlive-core-big.bin";
    inherit version;
  