mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
a8c7642646
https://cldr.unicode.org/index/downloads/cldr-42 postFetch changes are due to fetchzip changes in #173430
29 lines
800 B
Nix
29 lines
800 B
Nix
{ lib, fetchzip }:
|
|
|
|
fetchzip rec {
|
|
pname = "cldr-annotations";
|
|
version = "42.0";
|
|
|
|
url = "https://unicode.org/Public/cldr/${lib.versions.major version}/cldr-common-${version}.zip";
|
|
|
|
stripRoot = false;
|
|
postFetch = ''
|
|
mkdir -p $out/share/unicode/cldr/common
|
|
mv $out/common/annotations{,Derived} -t $out/share/unicode/cldr/common
|
|
|
|
shopt -s extglob dotglob
|
|
rm -rf $out/!(share)
|
|
shopt -u extglob dotglob
|
|
'';
|
|
|
|
hash = "sha256-9OOd69nBaDSt+ilL3PTGpcQgC60PnHqd8/CYa2LgeI0=";
|
|
|
|
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 ];
|
|
};
|
|
}
|