c9baba9212
(My OCD kicked in today...) Remove repeated package names, capitalize first word, remove trailing periods and move overlong descriptions to longDescription. I also simplified some descriptions as well, when they were particularly long or technical, often based on Arch Linux' package descriptions. I've tried to stay away from generated expressions (and I think I succeeded). Some specifics worth mentioning: * cron, has "Vixie Cron" in its description. The "Vixie" part is not mentioned anywhere else. I kept it in a parenthesis at the end of the description. * ctags description started with "Exuberant Ctags ...", and the "exuberant" part is not mentioned elsewhere. Kept it in a parenthesis at the end of description. * nix has the description "The Nix Deployment System". Since that doesn't really say much what it is/does (especially after removing the package name!), I changed that to "Powerful package manager that makes package management reliable and reproducible" (borrowed from nixos.org). * Tons of "GNU Foo, Foo is a [the important bits]" descriptions is changed to just [the important bits]. If the package name doesn't contain GNU I don't think it's needed to say it in the description either.
48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{ fetchurl, stdenv, flex, libxml2, libxslt
|
|
, docbook_xml_dtd_42, docbook_xsl, w3m
|
|
, bash, getopt, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "xmlto-0.0.25";
|
|
src = fetchurl {
|
|
url = "http://fedorahosted.org/releases/x/m/xmlto/${name}.tar.bz2";
|
|
sha256 = "0dp5nxq491gymq806za0dk4hngfmq65ysrqbn0ypajqbbl6vf71n";
|
|
};
|
|
|
|
patchPhase = ''
|
|
substituteInPlace "xmlto.in" \
|
|
--replace "/bin/bash" "${bash}/bin/bash"
|
|
substituteInPlace "xmlto.in" \
|
|
--replace "/usr/bin/locale" "$(type -P locale)"
|
|
substituteInPlace "xmlto.in" \
|
|
--replace "mktemp" "$(type -P mktemp)"
|
|
'';
|
|
|
|
# `libxml2' provides `xmllint', needed at build-time and run-time.
|
|
# `libxslt' provides `xsltproc', used by `xmlto' at run-time.
|
|
buildInputs = [ libxml2 libxslt docbook_xml_dtd_42 docbook_xsl getopt makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram "$out/bin/xmlto" \
|
|
--prefix PATH : "${libxslt}/bin:${libxml2}/bin:${getopt}/bin"
|
|
|
|
# `w3m' is needed for HTML to text conversions.
|
|
substituteInPlace "$out/share/xmlto/format/docbook/txt" \
|
|
--replace "/usr/bin/w3m" "${w3m}/bin/w3m"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Front-end to an XSL toolchain";
|
|
|
|
longDescription = ''
|
|
xmlto is a front-end to an XSL toolchain. It chooses an
|
|
appropriate stylesheet for the conversion you want and applies
|
|
it using an external XSL-T processor. It also performs any
|
|
necessary post-processing.
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
homepage = https://fedorahosted.org/xmlto/;
|
|
};
|
|
}
|