git.iko.soy/typeable/nixpkgs
on master help sign in
noto fonts and tools: update to newer tagged releases (#31543)

* noto fonts and tools: update to newer tagged releases * noto-tools: split out to a separate file

commita1e340fab212c10d121771c7bce7d2b1e99af516 authorBenjamin Staffin <benley@gmail.com> dateWed 22 Nov 2017, 00:19 (9 years ago) parent7059c88
3 files changed+39−35
pkgs/data/fonts/noto-fonts/default.nix+6−6 pkgs/data/fonts/noto-fonts/tools.nix+32 pkgs/top-level/python-packages.nix+1−29
pkgs/data/fonts/noto-fonts/default.nix+6−6
@@ -2,10 +2,10 @@
22
33rec {
44 # 18MB
5− noto-fonts = let version = "git-2016-03-29"; in fetchzip {
5+ noto-fonts = let version = "2017-10-24-phase3-second-cleanup"; in fetchzip {
66 name = "noto-fonts-${version}";
77
8− url = https://github.com/googlei18n/noto-fonts/archive/e8b0af48b15d64bd490edab4418b5e396cf29644.zip;
8+ url = "https://github.com/googlei18n/noto-fonts/archive/v${version}.zip";
99 postFetch = ''
1010 unzip $downloadedFile
1111
@@ -17,7 +17,7 @@ rec {
1717 cp -n noto-fonts-*/unhinted/*.ttf $out/share/fonts/noto
1818 cp -n noto-fonts-*/alpha/*.ttf $out/share/fonts/noto
1919 '';
20− sha256 = "0wphc8671dpbx3rxzmjisnjipg2c2vkhw2i6mmyamd6vvcwajd64";
20+ sha256 = "013l816cq9svdji266sccscm9sf9pfn472gq9lnqkzlwaxx9qrrl";
2121
2222 meta = with stdenv.lib; {
2323 inherit version;
@@ -75,14 +75,14 @@ rec {
7575 };
7676 };
7777 # 12MB
78− noto-fonts-emoji = let version = "git-2016-03-17"; in stdenv.mkDerivation {
78+ noto-fonts-emoji = let version = "2017-09-13-design-refresh"; in stdenv.mkDerivation {
7979 name = "noto-fonts-emoji-${version}";
8080
8181 src = fetchFromGitHub {
8282 owner = "googlei18n";
8383 repo = "noto-emoji";
84− rev = "c6379827aaa9cb0baca1a08a9d44ae74ca505236";
85− sha256 = "1zh1b617cjr5laha6lx0ys4k1c3az2zkgzjwc2nlb7dsdmfw1n0q";
84+ rev = "v${version}";
85+ sha256 = "1ixz03207kzh6jhmw8bpi77pxkfzq46dk26sr41m5kkvc14d14vl";
8686 };
8787
8888 buildInputs = [ cairo ];
pkgs/data/fonts/noto-fonts/tools.nixnew file+32
@@ -0,0 +1,32 @@
1+{ fetchFromGitHub, pythonPackages, lib }:
2+
3+pythonPackages.buildPythonPackage rec {
4+ version = "2017-09-25";
5+ name = "nototools-${version}";
6+
7+ src = fetchFromGitHub {
8+ owner = "googlei18n";
9+ repo = "nototools";
10+ rev = "v2017-09-25-tooling-for-phase3-update";
11+ sha256 = "03nzvcvwmrhfrcjhg218q2f3hfrm3vlivp4rk19sc397kh3hisiz";
12+ };
13+
14+ propagatedBuildInputs = with pythonPackages; [ fonttools numpy ];
15+
16+ postPatch = ''
17+ sed -ie "s^join(_DATA_DIR_PATH,^join(\"$out/third_party/ucd\",^" nototools/unicode_data.py
18+ '';
19+
20+ postInstall = ''
21+ cp -r third_party $out
22+ '';
23+
24+ disabled = pythonPackages.isPy3k;
25+
26+ meta = {
27+ description = "Noto fonts support tools and scripts plus web site generation";
28+ license = lib.licenses.asl20;
29+ homepage = https://github.com/googlei18n/nototools;
30+ platform = lib.platforms.unix;
31+ };
32+}
pkgs/top-level/python-packages.nix+1−29
@@ -10976,35 +10976,7 @@ in {
1097610976 };
1097710977 };
1097810978
10979− nototools = buildPythonPackage rec {
10980− version = "git-2016-03-25";
10981− name = "nototools-${version}";
10982−
10983− src = pkgs.fetchFromGitHub {
10984− owner = "googlei18n";
10985− repo = "nototools";
10986− rev = "4f7b067d1b18f59288e5eaee34db5b0abd3a3f63";
10987− sha256 = "05brbkfg77ij4pmcrhq9302albzdalr9gv6jfdsbyyi2k8j85gbn";
10988− };
10989−
10990− propagatedBuildInputs = with self; [ fonttools numpy ];
10991−
10992− postPatch = ''
10993− sed -ie "s^join(_DATA_DIR_PATH,^join(\"$out/third_party/ucd\",^" nototools/unicode_data.py
10994− '';
10995−
10996− postInstall = ''
10997− cp -r third_party $out
10998− '';
10999−
11000− disabled = isPy3k;
11001−
11002− meta = {
11003− description = "Noto fonts support tools and scripts plus web site generation";
11004− license = licenses.asl20;
11005− homepage = https://github.com/googlei18n/nototools;
11006− };
11007− };
10979+ notoTools = callPackage ../data/fonts/noto-fonts/tools.nix { };
1100810980
1100910981 rainbowstream = buildPythonPackage rec {
1101010982 name = "rainbowstream-${version}";