571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
939 B
Nix
37 lines
939 B
Nix
{ lib, stdenv, fetchurl, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "docbook5";
|
|
version = "5.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.docbook.org/xml/${version}/docbook-${version}.zip";
|
|
sha256 = "1iz3hq1lqgnshvlz4j9gvh4jy1ml74qf90vqf2ikbq0h4i2xzybs";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
installPhase =
|
|
''
|
|
dst=$out/share/xml/docbook-5.0
|
|
mkdir -p $dst
|
|
cp -prv * $dst/
|
|
|
|
substituteInPlace $dst/catalog.xml --replace 'uri="' "uri=\"$dst/"
|
|
|
|
rm -rf $dst/docs $dst/ChangeLog
|
|
|
|
# Backwards compatibility. Will remove eventually.
|
|
mkdir -p $out/xml/rng $out/xml/dtd
|
|
ln -s $dst/rng $out/xml/rng/docbook
|
|
ln -s $dst/dtd $out/xml/dtd/docbook
|
|
'';
|
|
|
|
meta = {
|
|
description = "Schemas for DocBook 5.0, a semantic markup language for technical documentation";
|
|
homepage = "https://docbook.org/xml/5.0/";
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|