2023-02-16 17:41:37 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-11-21 17:40:18 +00:00
|
|
|
pname = "cldr-annotations";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "45.0";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://unicode.org/Public/cldr/${lib.versions.major version}/cldr-common-${version}.zip";
|
|
|
|
stripRoot = false;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-8Id9thc3LWSw87aNpuSjQuLmFsx+XvXcz8Ox1Ua3sJw=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
mkdir -p $out/share/unicode/cldr/common
|
2023-02-16 17:41:37 +00:00
|
|
|
mv common/annotations{,Derived} -t $out/share/unicode/cldr/common
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
runHook postInstall
|
2022-04-15 01:41:22 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Names and keywords for Unicode characters from the Common Locale Data Repository";
|
|
|
|
homepage = "https://cldr.unicode.org";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.unicode-30;
|
2022-04-15 01:41:22 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ DeeUnderscore ];
|
|
|
|
};
|
|
|
|
}
|