about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/sgml+xml/schemas/xml-dtd/docbook/4.1.2.nix
blob: 35e69641f1169af01d5b71c90e4bbcfb73138499 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{stdenv, fetchurl, unzip, findXMLCatalogs}:

let

  # Urgh, DocBook 4.1.2 doesn't come with an XML catalog.  Use the one
  # from 4.2.
  docbook42catalog = fetchurl {
    url = http://www.docbook.org/xml/4.2/catalog.xml;
    sha256 = "18lhp6q2l0753s855r638shkbdwq9blm6akdjsc9nrik24k38j17";
  };

in

import ./generic.nix {
  inherit stdenv unzip findXMLCatalogs;
  name = "docbook-xml-4.1.2";
  src = fetchurl {
    url = http://www.docbook.org/xml/4.1.2/docbkx412.zip;
    sha256 = "0wkp5rvnqj0ghxia0558mnn4c7s3n501j99q2isp3sp0ci069w1h";
  };
  postInstall = "
    sed 's|V4.2|V4.1.2|g' < ${docbook42catalog} > catalog.xml
  ";
  meta = {
    branch = "4.1.2";
  };
}