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-01-02 11:29:13 +00:00
|
|
|
version = "44.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-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-oK+NlzuRF45laEMJKhNDzr12RF4CHIfDFNBFsIjJh1I=";
|
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";
|
|
|
|
license = licenses.unicode-dfs-2016;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ DeeUnderscore ];
|
|
|
|
};
|
|
|
|
}
|