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