You can't run fixupPhase before installPhase. http://hydra.nixos.org/build/8149119
This sets the SGML_CATALOG_FILES, similar to how libxml2 does the same with XML_CATALOG_FILES. I based the hook on the libxml2 one, and I followed the instructions about this variable here: http://docbook.sourceforge.net/release/dsssl/1.79/doc/install.html
This wrapper is required by some old programs (e.g., po4a which I'm trying to package) svn path=/nixpkgs/trunk/; revision=25320