1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/text/sgml/opensp/default.nix
Lluís Batlle i Rossell d711dcc070 Adding setup-hook for opensp, to set the sgml catalog files
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
2013-03-18 15:07:20 +01:00

26 lines
659 B
Nix

{stdenv, fetchurl, xmlto, docbook_xml_dtd_412, libxslt, docbook_xsl}:
stdenv.mkDerivation {
name = "opensp-1.5.2";
src = fetchurl {
url = mirror://sourceforge/openjade/OpenSP-1.5.2.tar.gz;
sha256 = "1khpasr6l0a8nfz6kcf3s81vgdab8fm2dj291n5r2s53k228kx2p";
};
patchPhase = ''
sed -i s,/usr/share/sgml/docbook/xml-dtd-4.1.2/,${docbook_xml_dtd_412}/xml/dtd/docbook/, \
docsrc/*.xml
'';
setupHook = ./setup-hook.sh;
buildInputs = [ xmlto docbook_xml_dtd_412 libxslt docbook_xsl ];
meta = {
description = "A suite of SGML/XML processing tools";
license = "BSD";
homepage = http://openjade.sourceforge.net/;
};
}