diff options
author | Francesco Gazzetta <francygazz@gmail.com> | 2018-01-25 22:09:08 +0000 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2018-01-26 20:09:27 +0000 |
commit | 314fb3d60aa6bc045b1d2b928f721dba1983ccc5 (patch) | |
tree | a9abdc8c9f2378fdfdf7be283929a3c13f6ad010 /pkgs/data/fonts | |
parent | b7e6ac151592bd3c7595e60e9ecf9e1e3c013fe9 (diff) | |
download | nixlib-314fb3d60aa6bc045b1d2b928f721dba1983ccc5.tar nixlib-314fb3d60aa6bc045b1d2b928f721dba1983ccc5.tar.gz nixlib-314fb3d60aa6bc045b1d2b928f721dba1983ccc5.tar.bz2 nixlib-314fb3d60aa6bc045b1d2b928f721dba1983ccc5.tar.lz nixlib-314fb3d60aa6bc045b1d2b928f721dba1983ccc5.tar.xz nixlib-314fb3d60aa6bc045b1d2b928f721dba1983ccc5.tar.zst nixlib-314fb3d60aa6bc045b1d2b928f721dba1983ccc5.zip |
twemoji-color-font: init at 1.3
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r-- | pkgs/data/fonts/twemoji-color-font/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/data/fonts/twemoji-color-font/default.nix b/pkgs/data/fonts/twemoji-color-font/default.nix new file mode 100644 index 000000000000..9173387a4c73 --- /dev/null +++ b/pkgs/data/fonts/twemoji-color-font/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchFromGitHub, inkscape, imagemagick, potrace, svgo, scfbuild }: + +stdenv.mkDerivation rec { + name = "twemoji-color-font-${meta.version}"; + src = fetchFromGitHub { + owner = "eosrei"; + repo = "twemoji-color-font"; + rev = "v${meta.version}"; + sha256 = "0i7krmg99nrrj7mbjjd2cw6dx24aja63571mcyp6d7q1z09asz9k"; + }; + + nativeBuildInputs = [ inkscape imagemagick potrace svgo scfbuild ]; + # silence inkscape errors about non-writable home + preBuild = "export HOME=\"$NIX_BUILD_ROOT\""; + makeFlags = [ "SCFBUILD=${scfbuild}/bin/scfbuild" ]; + enableParallelBuilding = true; + installPhase = "install -Dm755 build/TwitterColorEmoji-SVGinOT.ttf $out/share/fonts/truetype/TwitterColorEmoji-SVGinOT.ttf"; + + meta = with stdenv.lib; { + version = "1.3"; + description = "Color emoji SVGinOT font using Twitter Unicode 10 emoji with diversity and country flags"; + longDescription = '' + A color and B&W emoji SVGinOT font built from the Twitter Emoji for + Everyone artwork with support for ZWJ, skin tone diversity and country + flags. + + The font works in all operating systems, but will currently only show + color emoji in Firefox, Thunderbird, Photoshop CC 2017, and Windows Edge + V38.14393+. This is not a limitation of the font, but of the operating + systems and applications. Regular B&W outline emoji are included for + backwards/fallback compatibility. + ''; + homepage = "https://github.com/eosrei/twemoji-color-font"; + downloadPage = "https://github.com/eosrei/twemoji-color-font/releases"; + license = with licenses; [ cc-by-40 mit ]; + maintainers = [ maintainers.fgaz ]; + platforms = platforms.all; + }; +} |