anchor.diff:    dontBuild = true;
   
     installPhase = ''
  -    ${python2.interpreter} ./setup.py install --prefix="$out" --use-python-path --verbose
  +    ${python3.interpreter} ./setup.py install --prefix="$out" --use-python-path --verbose
     '';
   
     passthru = { inherit tex; };
  
positive.code: { lib, 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
  
negative.code:   ghostscript != null;
  
  stdenv.mkDerivation rec {
    pname = "dblatex";
    version = "0.3.12";
  
    src = fetchurl {
      url = "mirror://sourceforge/dblatex/${pname}3-${version}.tar.bz2";
      sha256 = "0yd09nypswy3q4scri1dg7dr99d7gd6r2dwx0xm81l9f4y32gs0n";
    };
  
    buildInputs = [ python3 libxslt tex ]
      ++ lib.optionals enableAllFeatures [ imagemagick transfig ];
  
    # TODO: dblatex tries to execute texindy command, but nixpkgs doesn't have
  