Add docbook2x.
svn path=/nixpkgs/trunk/; revision=11051
This commit is contained in:
parent
d36558d45a
commit
92246defa5
35
pkgs/tools/typesetting/docbook2x/default.nix
Normal file
35
pkgs/tools/typesetting/docbook2x/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ fetchurl, stdenv, perl, perlXMLSAX
|
||||
, groff, libxml2, libxslt, gnused
|
||||
, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "docbook2X-0.8.8";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/docbook2x/${name}.tar.gz";
|
||||
sha256 = "0ifwzk99rzjws0ixzimbvs83x6cxqk1xzmg84wa1p7bs6rypaxs0";
|
||||
};
|
||||
|
||||
buildInputs = [ perl groff libxml2 libxslt makeWrapper ];
|
||||
propagatedBuildInputs = [ perlXMLSAX ];
|
||||
|
||||
postInstall = ''
|
||||
perl_programs="db2x_manxml db2x_texixml db2x_xsltproc
|
||||
docbook2man docbook2texi";
|
||||
for i in $perl_programs
|
||||
do
|
||||
wrapProgram $out/bin/$i --prefix PERL5LIB : \
|
||||
"${perlXMLSAX}/lib/site_perl"
|
||||
done
|
||||
|
||||
wrapProgram $out/bin/sgml2xml-isoent --prefix PATH : \
|
||||
"${gnused}/bin"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = ''docbook2X is a software package that converts DocBook
|
||||
documents into the traditional Unix man page format
|
||||
and the GNU Texinfo format.'';
|
||||
license = "MIT-style";
|
||||
homepage = http://docbook2x.sourceforge.net/;
|
||||
};
|
||||
}
|
@ -503,6 +503,11 @@ rec {
|
||||
inherit fetchurl stdenv coreutils;
|
||||
});
|
||||
|
||||
docbook2x = import ../tools/typesetting/docbook2x {
|
||||
inherit fetchurl stdenv perl perlXMLSAX
|
||||
gnused groff libxml2 libxslt makeWrapper;
|
||||
};
|
||||
|
||||
dosfstoolsFun = lib.sumArgs (selectVersion ../tools/misc/dosfstools "2.11deb")
|
||||
{
|
||||
inherit builderDefs;
|
||||
|
Loading…
Reference in New Issue
Block a user