2018-07-21 00:44:44 +00:00
|
|
|
{stdenv, fetchurl}:
|
2004-04-08 11:49:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "docbook-xml-ebnf-1.2b1";
|
2017-11-27 18:53:13 +00:00
|
|
|
|
2004-04-08 11:49:27 +00:00
|
|
|
dtd = fetchurl {
|
2007-08-24 12:32:36 +00:00
|
|
|
url = http://www.docbook.org/xml/ebnf/1.2b1/dbebnf.dtd;
|
2016-09-10 17:46:49 +00:00
|
|
|
sha256 = "0min5dsc53my13b94g2yd65q1nkjcf4x1dak00bsc4ckf86mrx95";
|
2004-04-08 11:49:27 +00:00
|
|
|
};
|
|
|
|
catalog = ./docbook-ebnf.cat;
|
2016-08-02 16:06:29 +00:00
|
|
|
|
2017-11-27 18:53:13 +00:00
|
|
|
unpackPhase = ''
|
|
|
|
mkdir -p $out/xml/dtd/docbook-ebnf
|
|
|
|
cd $out/xml/dtd/docbook-ebnf
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp -p $dtd dbebnf.dtd
|
|
|
|
cp -p $catalog $(stripHash $catalog)
|
|
|
|
'';
|
|
|
|
|
2016-08-02 16:06:29 +00:00
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
2004-04-08 11:49:27 +00:00
|
|
|
}
|