2023-01-31 15:35:18 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2022-03-28 23:45:33 +00:00
|
|
|
|
2023-01-31 15:35:18 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-10-19 14:06:25 +00:00
|
|
|
pname = "cldr-annotations";
|
2023-04-18 12:41:55 +00:00
|
|
|
version = "43.0";
|
2022-03-28 23:45:33 +00:00
|
|
|
|
2023-01-31 15:35:18 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://unicode.org/Public/cldr/${lib.versions.major version}/cldr-common-${version}.zip";
|
|
|
|
stripRoot = false;
|
2023-04-18 12:41:55 +00:00
|
|
|
hash = "sha256-L8ikzRpSw4mDCV79TiUqhPHWC0PmGi4i4He0OAB54R0=";
|
2023-01-31 15:35:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2022-03-28 23:45:33 +00:00
|
|
|
|
2022-10-19 14:06:25 +00:00
|
|
|
mkdir -p $out/share/unicode/cldr/common
|
2023-01-31 15:35:18 +00:00
|
|
|
mv common/annotations{,Derived} -t $out/share/unicode/cldr/common
|
2022-10-19 14:06:25 +00:00
|
|
|
|
2023-01-31 15:35:18 +00:00
|
|
|
runHook postInstall
|
2022-03-28 23:45:33 +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 ];
|
|
|
|
};
|
|
|
|
}
|