anchor.diff: -{ lib, stdenv, fetchurl, fetchpatch
  +{ lib, stdenv, fetchurl, fetchpatch, buildPackages
   , texlive
   , zlib, libiconv, libpng, libX11
   , freetype, gd, libXaw, icu, ghostscript, libXpm, libXmu, libXext
  
positive.code: 
    outputs = [ "out" "doc" ];
  
    nativeBuildInputs = [ pkg-config ];
    buildInputs = [
      /*teckit*/ zziplib mpfr gmp
      pixman gd freetype libpng libpaper zlib
  
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"
  