2009-09-30 07:27:34 +02:00
|
|
|
{stdenv, fetchurl, pkgconfig, perl, python, libxml2, libxslt, docbook_xml_dtd_43, docbook_xsl, gnome_doc_utils}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "gtk-doc-1.11";
|
|
|
|
src = fetchurl {
|
2009-09-30 08:35:09 +02:00
|
|
|
url = mirror://gnome/sources/gtk-doc/1.11/gtk-doc-1.11.tar.bz2;
|
2009-09-30 08:10:45 +02:00
|
|
|
sha256 = "08zz6gn90aqps84hfhdgarsilbdj0bbnj3wjm2x552n4i7gmq4wj";
|
2009-09-30 07:27:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# maybe there is a better way to pass the needed dtd and xsl files
|
|
|
|
# "-//OASIS//DTD DocBook XML V4.1.2//EN" and "http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"
|
|
|
|
preConfigure = ''
|
|
|
|
ensureDir $out/nix-support
|
|
|
|
cat > $out/nix-support/catalog.xml << EOF
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
|
|
|
|
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
|
|
|
|
<nextCatalog catalog="${docbook_xsl}/xml/xsl/docbook/catalog.xml" />
|
|
|
|
<nextCatalog catalog="${docbook_xml_dtd_43}/xml/dtd/docbook/catalog.xml" />
|
|
|
|
</catalog>
|
|
|
|
EOF
|
|
|
|
|
|
|
|
configureFlags="--with-xml-catalog=$out/nix-support/catalog.xml --disable-scrollkeeper";
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig perl python libxml2 libxslt docbook_xml_dtd_43 gnome_doc_utils ];
|
|
|
|
}
|