openvswitch: generalize builder
[NixPkgs.git] / pkgs / data / misc / cldr-annotations / default.nix
blobf19b666abeabf317757d10d351f7577669350851
1 { lib, fetchzip }:
3 fetchzip rec {
4   pname = "cldr-annotations";
5   version = "42.0";
7   url = "https://unicode.org/Public/cldr/${lib.versions.major version}/cldr-common-${version}.zip";
9   stripRoot = false;
10   postFetch = ''
11     mkdir -p $out/share/unicode/cldr/common
12     mv $out/common/annotations{,Derived} -t $out/share/unicode/cldr/common
14     shopt -s extglob dotglob
15     rm -rf $out/!(share)
16     shopt -u extglob dotglob
17   '';
19   hash = "sha256-9OOd69nBaDSt+ilL3PTGpcQgC60PnHqd8/CYa2LgeI0=";
21   meta = with lib; {
22     description = "Names and keywords for Unicode characters from the Common Locale Data Repository";
23     homepage = "https://cldr.unicode.org";
24     license = licenses.unicode-dfs-2016;
25     platforms = platforms.all;
26     maintainers = with maintainers; [ DeeUnderscore ];
27   };