-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docbook-ebnf: refactor to pkgs/by-name/
- Loading branch information
Showing
4 changed files
with
48 additions
and
27 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
lib, | ||
stdenvNoCC, | ||
fetchurl, | ||
}: | ||
|
||
stdenvNoCC.mkDerivation (finalAttrs: { | ||
pname = "docbook-ebnf"; | ||
version = "1.2b1"; | ||
|
||
src = fetchurl { | ||
url = "https://docbook.org/xml/ebnf/${finalAttrs.version}/dbebnf.dtd"; | ||
hash = "sha256-JfVcDXKTEaYXAFO10IljctqAi2lePJLWCL6OwnQrNlY="; | ||
}; | ||
catalog = builtins.path { | ||
name = "docbook-ebnf.cat"; | ||
path = ./docbook-ebnf.cat; | ||
}; | ||
|
||
dontUnpack = true; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
dst=$out/xml/dtd/docbook-ebnf | ||
mkdir -p $dst | ||
cp -p $src $dst/$(stripHash $src) | ||
cp -p $catalog $dst/$(stripHash $catalog) | ||
runHook postInstall | ||
''; | ||
|
||
meta = { | ||
description = "DocBook EBNF module"; | ||
longDescription = '' | ||
The "EBNF" schema adds EBNF (Extended Backus-Naur Forms) elements elements | ||
to DocBook. | ||
This is an official product of the OASIS DocBook Technical Committee. | ||
''; | ||
homepage = "https://docbook.org/"; | ||
license = lib.licenses.free; | ||
maintainers = with lib.maintainers; [ rc-zb ]; | ||
platforms = lib.platforms.unix; | ||
}; | ||
}) |
26 changes: 0 additions & 26 deletions
26
pkgs/data/sgml+xml/schemas/xml-dtd/docbook-ebnf/default.nix
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters