2014-11-25 14:43:04 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2006-08-18 09:32:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-06-11 15:39:04 +00:00
|
|
|
name = "docbook5-5.0";
|
2006-08-18 09:32:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-06-11 15:39:04 +00:00
|
|
|
url = http://www.docbook.org/xml/5.0/docbook-5.0.zip;
|
|
|
|
sha256 = "13i04dkd709f0p5f2413sf2y9321pfi4y85ynf8wih6ryphnbk9x";
|
2006-08-18 09:32:53 +00:00
|
|
|
};
|
2008-06-11 15:39:04 +00:00
|
|
|
|
2017-11-27 18:34:00 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2014-11-25 14:43:04 +00:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
dst=$out/share/xml/docbook-5.0
|
|
|
|
mkdir -p $dst
|
|
|
|
cp -prv * $dst/
|
|
|
|
|
|
|
|
substituteInPlace $dst/catalog.xml --replace 'uri="' "uri=\"$dst/"
|
|
|
|
|
|
|
|
rm -rf $dst/docs $dst/ChangeLog
|
|
|
|
|
|
|
|
# Backwards compatibility. Will remove eventually.
|
|
|
|
mkdir -p $out/xml/rng $out/xml/dtd
|
|
|
|
ln -s $dst/rng $out/xml/rng/docbook
|
|
|
|
ln -s $dst/dtd $out/xml/dtd/docbook
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Schemas for DocBook 5.0, a semantic markup language for technical documentation";
|
2018-03-25 05:04:25 +00:00
|
|
|
homepage = https://docbook.org/xml/5.0/;
|
2014-11-25 14:43:04 +00:00
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
2006-08-18 09:32:53 +00:00
|
|
|
}
|