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