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
This commit is contained in:
parent
7059c88290
commit
a1e340fab2
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
rec {
|
rec {
|
||||||
# 18MB
|
# 18MB
|
||||||
noto-fonts = let version = "git-2016-03-29"; in fetchzip {
|
noto-fonts = let version = "2017-10-24-phase3-second-cleanup"; in fetchzip {
|
||||||
name = "noto-fonts-${version}";
|
name = "noto-fonts-${version}";
|
||||||
|
|
||||||
url = https://github.com/googlei18n/noto-fonts/archive/e8b0af48b15d64bd490edab4418b5e396cf29644.zip;
|
url = "https://github.com/googlei18n/noto-fonts/archive/v${version}.zip";
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
unzip $downloadedFile
|
unzip $downloadedFile
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ rec {
|
|||||||
cp -n noto-fonts-*/unhinted/*.ttf $out/share/fonts/noto
|
cp -n noto-fonts-*/unhinted/*.ttf $out/share/fonts/noto
|
||||||
cp -n noto-fonts-*/alpha/*.ttf $out/share/fonts/noto
|
cp -n noto-fonts-*/alpha/*.ttf $out/share/fonts/noto
|
||||||
'';
|
'';
|
||||||
sha256 = "0wphc8671dpbx3rxzmjisnjipg2c2vkhw2i6mmyamd6vvcwajd64";
|
sha256 = "013l816cq9svdji266sccscm9sf9pfn472gq9lnqkzlwaxx9qrrl";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
inherit version;
|
inherit version;
|
||||||
@ -75,14 +75,14 @@ rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
# 12MB
|
# 12MB
|
||||||
noto-fonts-emoji = let version = "git-2016-03-17"; in stdenv.mkDerivation {
|
noto-fonts-emoji = let version = "2017-09-13-design-refresh"; in stdenv.mkDerivation {
|
||||||
name = "noto-fonts-emoji-${version}";
|
name = "noto-fonts-emoji-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "googlei18n";
|
owner = "googlei18n";
|
||||||
repo = "noto-emoji";
|
repo = "noto-emoji";
|
||||||
rev = "c6379827aaa9cb0baca1a08a9d44ae74ca505236";
|
rev = "v${version}";
|
||||||
sha256 = "1zh1b617cjr5laha6lx0ys4k1c3az2zkgzjwc2nlb7dsdmfw1n0q";
|
sha256 = "1ixz03207kzh6jhmw8bpi77pxkfzq46dk26sr41m5kkvc14d14vl";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cairo ];
|
buildInputs = [ cairo ];
|
||||||
|
32
pkgs/data/fonts/noto-fonts/tools.nix
Normal file
32
pkgs/data/fonts/noto-fonts/tools.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ fetchFromGitHub, pythonPackages, lib }:
|
||||||
|
|
||||||
|
pythonPackages.buildPythonPackage rec {
|
||||||
|
version = "2017-09-25";
|
||||||
|
name = "nototools-${version}";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "googlei18n";
|
||||||
|
repo = "nototools";
|
||||||
|
rev = "v2017-09-25-tooling-for-phase3-update";
|
||||||
|
sha256 = "03nzvcvwmrhfrcjhg218q2f3hfrm3vlivp4rk19sc397kh3hisiz";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = with pythonPackages; [ fonttools numpy ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -ie "s^join(_DATA_DIR_PATH,^join(\"$out/third_party/ucd\",^" nototools/unicode_data.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
cp -r third_party $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
disabled = pythonPackages.isPy3k;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Noto fonts support tools and scripts plus web site generation";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
homepage = https://github.com/googlei18n/nototools;
|
||||||
|
platform = lib.platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
@ -10976,35 +10976,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nototools = buildPythonPackage rec {
|
notoTools = callPackage ../data/fonts/noto-fonts/tools.nix { };
|
||||||
version = "git-2016-03-25";
|
|
||||||
name = "nototools-${version}";
|
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "googlei18n";
|
|
||||||
repo = "nototools";
|
|
||||||
rev = "4f7b067d1b18f59288e5eaee34db5b0abd3a3f63";
|
|
||||||
sha256 = "05brbkfg77ij4pmcrhq9302albzdalr9gv6jfdsbyyi2k8j85gbn";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ fonttools numpy ];
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
sed -ie "s^join(_DATA_DIR_PATH,^join(\"$out/third_party/ucd\",^" nototools/unicode_data.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
cp -r third_party $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
disabled = isPy3k;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Noto fonts support tools and scripts plus web site generation";
|
|
||||||
license = licenses.asl20;
|
|
||||||
homepage = https://github.com/googlei18n/nototools;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
rainbowstream = buildPythonPackage rec {
|
rainbowstream = buildPythonPackage rec {
|
||||||
name = "rainbowstream-${version}";
|
name = "rainbowstream-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user