anchor.diff: -{ stdenv, fetchurl, python, libxslt, texlive
  +{ stdenv, fetchurl, python2, libxslt, texlive
   , enableAllFeatures ? false, imagemagick ? null, transfig ? null, inkscape ? null, fontconfig ? null, ghostscript ? null
   
   , tex ? texlive.combine { # satisfy all packages that ./configure mentions
  
positive.code:     sha256 = "0bkjgrn03dy5c7438s429wnv6z5ynxkr4pbhp2z49kynskgkzkjr";
    };
  
    buildInputs = [ python libxslt tex ]
      ++ stdenv.lib.optionals enableAllFeatures [ imagemagick transfig ];
  
    # TODO: dblatex tries to execute texindy command, but nixpkgs doesn't have
  
negative.code:   dontBuild = true;
  
    installPhase = ''
      ${python2.interpreter} ./setup.py install --prefix="$out" --use-python-path --verbose
    '';
  
    passthru = { inherit tex; };
  