1 { lib, stdenv, fetchurl, unzip }:
3 stdenv.mkDerivation rec {
8 url = "http://www.docbook.org/xml/${version}/docbook-${version}.zip";
9 sha256 = "1iz3hq1lqgnshvlz4j9gvh4jy1ml74qf90vqf2ikbq0h4i2xzybs";
12 nativeBuildInputs = [ unzip ];
16 dst=$out/share/xml/docbook-5.0
20 substituteInPlace $dst/catalog.xml --replace 'uri="' "uri=\"$dst/"
22 rm -rf $dst/docs $dst/ChangeLog
24 # Backwards compatibility. Will remove eventually.
25 mkdir -p $out/xml/rng $out/xml/dtd
26 ln -s $dst/rng $out/xml/rng/docbook
27 ln -s $dst/dtd $out/xml/dtd/docbook
31 description = "Schemas for DocBook 5.0, a semantic markup language for technical documentation";
32 homepage = "https://docbook.org/xml/5.0/";
34 platforms = lib.platforms.all;