noto-fonts-emoji: unstable-2019-10-22 → unstable-2020-08-20
Now supports Unicode 13.0.
This commit is contained in:
parent
a22e9ae45d
commit
079b8e1c5d
@ -6,11 +6,12 @@
|
|||||||
, fetchzip
|
, fetchzip
|
||||||
, optipng
|
, optipng
|
||||||
, cairo
|
, cairo
|
||||||
, python3Packages
|
, python3
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, pngquant
|
, pngquant
|
||||||
, which
|
, which
|
||||||
, imagemagick
|
, imagemagick
|
||||||
|
, zopfli
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -110,25 +111,36 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
noto-fonts-emoji = let
|
noto-fonts-emoji = let
|
||||||
version = "unstable-2019-10-22";
|
version = "unstable-2020-08-20";
|
||||||
|
emojiPythonEnv =
|
||||||
|
python3.withPackages (p: with p; [ fonttools nototools ]);
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
pname = "noto-fonts-emoji";
|
pname = "noto-fonts-emoji";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "googlei18n";
|
owner = "googlefonts";
|
||||||
repo = "noto-emoji";
|
repo = "noto-emoji";
|
||||||
rev = "018aa149d622a4fea11f01c61a7207079da301bc";
|
rev = "1bc491419fa2925d018f27bfe702792031be0e68";
|
||||||
sha256 = "0qmnnjpp5lza6g5m3ki6hj46p891h9vl42k3acd0qw8i0jj5yn2c";
|
sha256 = "1vak4s1p4wlwzpnqfb1c2sg62q82gnjpnmqrfz8xl6bd0z55imzy";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cairo ];
|
nativeBuildInputs = [
|
||||||
nativeBuildInputs = [ pngquant optipng which cairo pkgconfig imagemagick ]
|
cairo
|
||||||
++ (with python3Packages; [ python fonttools nototools ]);
|
imagemagick
|
||||||
|
zopfli
|
||||||
|
pngquant
|
||||||
|
which
|
||||||
|
pkgconfig
|
||||||
|
emojiPythonEnv
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i 's,^PNGQUANT :=.*,PNGQUANT := ${pngquant}/bin/pngquant,' Makefile
|
patchShebangs *.py
|
||||||
patchShebangs flag_glyph_name.py
|
patchShebangs third_party/color_emoji/*.py
|
||||||
|
# remove check for virtualenv, since we handle
|
||||||
|
# python requirements using python.withPackages
|
||||||
|
sed -i '/ifndef VIRTUAL_ENV/,+2d' Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
@ -141,7 +153,7 @@ in
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
inherit version;
|
inherit version;
|
||||||
description = "Color and Black-and-White emoji fonts";
|
description = "Color and Black-and-White emoji fonts";
|
||||||
homepage = "https://github.com/googlei18n/noto-emoji";
|
homepage = "https://github.com/googlefonts/noto-emoji";
|
||||||
license = with licenses; [ ofl asl20 ];
|
license = with licenses; [ ofl asl20 ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ mathnerd314 ];
|
maintainers = with maintainers; [ mathnerd314 ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user