anchor.diff:  
     # TODO: perhaps improve texmf.cnf search locations
     postInstall = /* links format -> engine will be regenerated in texlive.combine */ ''
  -    PATH="$out/bin:$PATH" ${texlinks}/bin/texlinks --cnffile "$out/share/texmf-dist/web2c/fmtutil.cnf" --unlink "$out/bin"
  +    PATH="$out/bin:$PATH" ${buildPackages.texlive.bin.texlinks}/bin/texlinks --cnffile "$out/share/texmf-dist/web2c/fmtutil.cnf" --unlink "$out/bin"
     '' + /* a few texmf-dist files are useful; take the rest from pkgs */ ''
       mv "$out/share/texmf-dist/web2c/texmf.cnf" .
       rm -r "$out/share/texmf-dist"
  
positive.code: { lib, stdenv, fetchurl, fetchpatch
  , texlive
  , zlib, libiconv, libpng, libX11
  , freetype, gd, libXaw, icu, ghostscript, libXpm, libXmu, libXext
  
negative.code:   '';
    configureScript = "../configure";
  
    depsBuildBuild = [ buildPackages.stdenv.cc ];
  
    configureFlags = common.configureFlags
      ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ "BUILDCC=${buildPackages.stdenv.cc.targetPrefix}cc" ]
      ++ [ "--without-x" ] # disable xdvik and xpdfopen
      ++ map (what: "--disable-${what}") [
        "chktex"
  