2011-11-01 16:47:18 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
2017-10-29 17:29:59 +00:00
|
|
|
let
|
2011-11-01 16:47:18 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip";
|
2011-11-01 16:47:18 +00:00
|
|
|
sha256 = "04b3gp4zkh9c5g9kvnywdkdfkcqx3kjc04j4mpkr4xk7lgqgrany";
|
|
|
|
};
|
|
|
|
|
|
|
|
isoents = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://www.oasis-open.org/cover/ISOEnts.zip";
|
2011-11-01 16:47:18 +00:00
|
|
|
sha256 = "1clrkaqnvc1ja4lj8blr0rdlphngkcda3snm7b9jzvcn76d3br6w";
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "docbook-sgml-4.1";
|
|
|
|
|
2019-06-19 16:45:34 +01:00
|
|
|
dontUnpack = true;
|
2011-11-01 16:47:18 +00:00
|
|
|
|
2017-10-29 17:29:59 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2011-11-01 16:47:18 +00:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
o=$out/sgml/dtd/docbook-4.1
|
|
|
|
mkdir -p $o
|
|
|
|
cd $o
|
|
|
|
unzip ${src}
|
|
|
|
unzip ${isoents}
|
|
|
|
sed -e "s/iso-/ISO/" -e "s/.gml//" -i docbook.cat
|
|
|
|
'';
|
2016-08-02 17:06:29 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
2011-11-01 16:47:18 +00:00
|
|
|
}
|