2012-03-19 05:36:41 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, perl, python, libxml2Python, libxslt, which
|
2014-10-05 22:50:22 +02:00
|
|
|
, docbook_xml_dtd_43, docbook_xsl, gnome_doc_utils, dblatex, gettext, itstool }:
|
2009-09-30 07:27:34 +02:00
|
|
|
|
2014-10-05 22:50:22 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gtk-doc-${version}";
|
2016-03-24 00:07:12 +01:00
|
|
|
version = "1.25";
|
2012-03-19 05:36:41 +01:00
|
|
|
|
2009-09-30 07:27:34 +02:00
|
|
|
src = fetchurl {
|
2014-10-05 22:50:22 +02:00
|
|
|
url = "mirror://gnome/sources/gtk-doc/${version}/${name}.tar.xz";
|
2016-03-24 00:07:12 +01:00
|
|
|
sha256 = "0hpxcij9xx9ny3gs9p0iz4r8zslw8wqymbyababiyl7603a6x90y";
|
2009-09-30 07:27:34 +02:00
|
|
|
};
|
2010-05-27 15:08:21 +02:00
|
|
|
|
2016-09-20 16:51:51 +02:00
|
|
|
outputDevdoc = "out";
|
2016-01-02 11:18:27 +01: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 =
|
2012-03-19 05:36:41 +01:00
|
|
|
[ pkgconfig perl python libxml2Python libxslt docbook_xml_dtd_43 docbook_xsl
|
2014-10-05 22:50:22 +02:00
|
|
|
gnome_doc_utils dblatex gettext which itstool
|
2010-05-27 15:08:21 +02:00
|
|
|
];
|
2014-10-05 22:50:22 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://www.gtk.org/gtk-doc;
|
2014-10-05 22:50:22 +02:00
|
|
|
description = "Tools to extract documentation embedded in GTK+ and GNOME source code";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
2009-09-30 07:27:34 +02:00
|
|
|
}
|