7 stdenv.mkDerivation (finalAttrs: {
8 pname = "twemoji-color-font";
11 # We fetch the prebuilt font because building it takes 1.5 hours on hydra.
12 # Relevant issue: https://github.com/NixOS/nixpkgs/issues/97871
14 url = "https://github.com/eosrei/twemoji-color-font/releases/download/v${finalAttrs.version}/TwitterColorEmoji-SVGinOT-Linux-${finalAttrs.version}.tar.gz";
15 sha256 = "sha256-yKUwLuTkwhiM54Xt2ExQxhagf26Z/huRrsuk4ds0EpU=";
21 install -Dm755 TwitterColorEmoji-SVGinOT.ttf $out/share/fonts/truetype/TwitterColorEmoji-SVGinOT.ttf
22 install -Dm644 fontconfig/46-twemoji-color.conf $out/etc/fonts/conf.d/46-twemoji-color.conf
26 description = "Color emoji SVGinOT font using Twitter Unicode 10 emoji with diversity and country flags";
28 A color and B&W emoji SVGinOT font built from the Twitter Emoji for
29 Everyone artwork with support for ZWJ, skin tone diversity and country
32 The font works in all operating systems, but will currently only show
33 color emoji in Firefox, Thunderbird, Photoshop CC 2017, and Windows Edge
34 V38.14393+. This is not a limitation of the font, but of the operating
35 systems and applications. Regular B&W outline emoji are included for
36 backwards/fallback compatibility.
38 homepage = "https://github.com/eosrei/twemoji-color-font";
39 downloadPage = "https://github.com/eosrei/twemoji-color-font/releases";
40 license = with licenses; [
44 maintainers = [ maintainers.fgaz ];