2010-05-27 15:08:21 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, perl, python, libxml2, libxslt
|
|
|
|
, docbook_xml_dtd_43, docbook_xsl, gnome_doc_utils, dblatex }:
|
2009-09-30 07:27:34 +02:00
|
|
|
|
2010-05-27 15:08:21 +02:00
|
|
|
let version = "1.15"; in
|
2009-09-30 07:27:34 +02:00
|
|
|
stdenv.mkDerivation {
|
2010-05-27 15:08:21 +02:00
|
|
|
name = "gtk-doc-${version}";
|
2009-09-30 07:27:34 +02:00
|
|
|
src = fetchurl {
|
2010-05-27 15:08:21 +02:00
|
|
|
url = "mirror://gnome/sources/gtk-doc/${version}/gtk-doc-${version}.tar.bz2";
|
|
|
|
sha256 = "0ca8wh67nyh574ahlfkx8k9w2bm4ji9yzxvi3afsicqdpyx77k2r";
|
2009-09-30 07:27:34 +02:00
|
|
|
};
|
2010-05-27 15:08:21 +02:00
|
|
|
|
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 = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/nix-support
|
2009-09-30 07:27:34 +02:00
|
|
|
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";
|
|
|
|
'';
|
|
|
|
|
2010-05-27 15:08:21 +02:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig perl python libxml2 libxslt docbook_xml_dtd_43 docbook_xsl
|
|
|
|
gnome_doc_utils dblatex
|
|
|
|
];
|
2009-09-30 07:27:34 +02:00
|
|
|
}
|