mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 22:57:42 +03:00
cldr-annotations: 41.0 -> 42.0
https://cldr.unicode.org/index/downloads/cldr-42 postFetch changes are due to fetchzip changes in #173430
This commit is contained in:
parent
d2cfe468f8
commit
a8c7642646
@ -1,18 +1,22 @@
|
|||||||
{ lib, fetchzip }:
|
{ lib, fetchzip }:
|
||||||
|
|
||||||
let
|
fetchzip rec {
|
||||||
version = "41.0";
|
pname = "cldr-annotations";
|
||||||
in fetchzip rec {
|
version = "42.0";
|
||||||
name = "cldr-annotations-${version}";
|
|
||||||
|
|
||||||
url = "https://unicode.org/Public/cldr/${lib.versions.major version}/cldr-common-${version}.zip";
|
url = "https://unicode.org/Public/cldr/${lib.versions.major version}/cldr-common-${version}.zip";
|
||||||
|
|
||||||
|
stripRoot = false;
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
mkdir -p $out/share/unicode/cldr
|
mkdir -p $out/share/unicode/cldr/common
|
||||||
unzip -d $out/share/unicode/cldr $downloadedFile 'common/annotations/*' 'common/annotationsDerived/*'
|
mv $out/common/annotations{,Derived} -t $out/share/unicode/cldr/common
|
||||||
|
|
||||||
|
shopt -s extglob dotglob
|
||||||
|
rm -rf $out/!(share)
|
||||||
|
shopt -u extglob dotglob
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sha256 = "sha256-3dHVZGx3FmR97fzhlTSx/xp6YTAV+sMExl6gpLzl1MY=";
|
hash = "sha256-9OOd69nBaDSt+ilL3PTGpcQgC60PnHqd8/CYa2LgeI0=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Names and keywords for Unicode characters from the Common Locale Data Repository";
|
description = "Names and keywords for Unicode characters from the Common Locale Data Repository";
|
||||||
|
Loading…
Reference in New Issue
Block a user