mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
91aeb56b97
svn path=/nixpkgs/branches/stdenv-updates/; revision=14719
29 lines
1.1 KiB
Nix
29 lines
1.1 KiB
Nix
{ stdenv, gtkdoc, pkgconfig, gnomedocutils, perl
|
|
, libxml2, xmlto, docbook2x, docbook_xsl, docbook_xml_dtd_412
|
|
, libxslt }:
|
|
|
|
stdenv.mkDerivation {
|
|
inherit (gtkdoc) name src;
|
|
|
|
inherit docbook_xml_dtd_412;
|
|
buildInputs = [ pkgconfig perl gnomedocutils
|
|
libxml2
|
|
xmlto docbook2x docbook_xsl docbook_xml_dtd_412 libxslt ];
|
|
|
|
|
|
# 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_412}/xml/dtd/docbook/catalog.xml" />
|
|
</catalog>
|
|
EOF
|
|
configureFlags="--with-xml-catalog=$out/nix-support/catalog.xml"
|
|
'';
|
|
}
|