2014-11-25 14:43:04 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2006-08-18 09:32:53 +00:00
|
|
|
|
2019-07-20 10:39:16 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "docbook5";
|
|
|
|
version = "5.0.1";
|
2006-08-18 09:32:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-07-20 10:39:16 +00:00
|
|
|
url = "http://www.docbook.org/xml/${version}/docbook-${version}.zip";
|
|
|
|
sha256 = "1iz3hq1lqgnshvlz4j9gvh4jy1ml74qf90vqf2ikbq0h4i2xzybs";
|
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";
|
2020-04-01 01:11:51 +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
|
|
|
}
|