Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
34 lines
661 B
Nix
34 lines
661 B
Nix
{
|
|
lib,
|
|
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 = "https://docbook.org/xml/4.2/catalog.xml";
|
|
sha256 = "18lhp6q2l0753s855r638shkbdwq9blm6akdjsc9nrik24k38j17";
|
|
};
|
|
in
|
|
|
|
import ./generic.nix {
|
|
inherit
|
|
lib
|
|
stdenv
|
|
unzip
|
|
findXMLCatalogs
|
|
;
|
|
version = "4.1.2";
|
|
src = fetchurl {
|
|
url = "https://docbook.org/xml/4.1.2/docbkx412.zip";
|
|
sha256 = "0wkp5rvnqj0ghxia0558mnn4c7s3n501j99q2isp3sp0ci069w1h";
|
|
};
|
|
postInstall = "
|
|
sed 's|V4.2|V4.1.2|g' < ${docbook42catalog} > catalog.xml
|
|
";
|
|
}
|