Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "cldr-annotations";
5 version = "45.0";
6
7 src = fetchzip {
8 url = "https://unicode.org/Public/cldr/${lib.versions.major version}/cldr-common-${version}.zip";
9 stripRoot = false;
10 hash = "sha256-8Id9thc3LWSw87aNpuSjQuLmFsx+XvXcz8Ox1Ua3sJw=";
11 };
12
13 installPhase = ''
14 runHook preInstall
15
16 mkdir -p $out/share/unicode/cldr/common
17 mv common/annotations{,Derived} -t $out/share/unicode/cldr/common
18
19 runHook postInstall
20 '';
21
22 meta = with lib; {
23 description = "Names and keywords for Unicode characters from the Common Locale Data Repository";
24 homepage = "https://cldr.unicode.org";
25 license = licenses.unicode-30;
26 platforms = platforms.all;
27 maintainers = with maintainers; [ DeeUnderscore ];
28 };
29}