Merge pull request #196790 from DeeUnderscore/update/cldr-annotations-42.0

authored by Sandro and committed by GitHub 10904622 238db8df

+11 -7
+11 -7
pkgs/data/misc/cldr-annotations/default.nix
··· 1 1 { lib, fetchzip }: 2 2 3 - let 4 - version = "41.0"; 5 - in fetchzip rec { 6 - name = "cldr-annotations-${version}"; 3 + fetchzip rec { 4 + pname = "cldr-annotations"; 5 + version = "42.0"; 7 6 8 7 url = "https://unicode.org/Public/cldr/${lib.versions.major version}/cldr-common-${version}.zip"; 9 8 9 + stripRoot = false; 10 10 postFetch = '' 11 - mkdir -p $out/share/unicode/cldr 12 - unzip -d $out/share/unicode/cldr $downloadedFile 'common/annotations/*' 'common/annotationsDerived/*' 11 + mkdir -p $out/share/unicode/cldr/common 12 + mv $out/common/annotations{,Derived} -t $out/share/unicode/cldr/common 13 + 14 + shopt -s extglob dotglob 15 + rm -rf $out/!(share) 16 + shopt -u extglob dotglob 13 17 ''; 14 18 15 - sha256 = "sha256-3dHVZGx3FmR97fzhlTSx/xp6YTAV+sMExl6gpLzl1MY="; 19 + hash = "sha256-9OOd69nBaDSt+ilL3PTGpcQgC60PnHqd8/CYa2LgeI0="; 16 20 17 21 meta = with lib; { 18 22 description = "Names and keywords for Unicode characters from the Common Locale Data Repository";