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";
|
|
|
|
version = "42.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;
|
|
|
|
hash = "sha256-paRon3ecGXNp3ZDnN1DU9RVU2NDWTBiKjy0OP3vcPLE=";
|
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|