@@ -0,0 +1,31 @@
1+{ stdenv, fetchurl }:
2+
3+let
4+ fontconfig = fetchurl {
5+ name = "75-joypixels.conf";
6+ url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/75-joypixels.conf?h=packages/ttf-joypixels&id=b2b38f8393ec56ed7338c256f5b85f3439a2dfc3";
7+ sha256 = "065y2fmf86zzvna1hrvcg46cnr7a76xd2mwa26nss861dsx6pnd6";
8+ };
9+in stdenv.mkDerivation rec {
10+ pname = "emojione";
11+ version = "5.0.2";
12+
13+ src = fetchurl {
14+ url = "https://cdn.joypixels.com/arch-linux/font/${version}/joypixels-android.ttf";
15+ sha256 = "0javgnfsh2nfddr5flf4yzi81ar8wx2z8w1q7h4fvdng5fsrgici";
16+ };
17+
18+ dontUnpack = true;
19+
20+ installPhase = ''
21+ install -Dm644 $src $out/share/fonts/truetype/joypixels.ttf
22+ install -Dm644 ${fontconfig} $out/etc/fonts/conf.d/75-joypixels.conf
23+ '';
24+
25+ meta = with stdenv.lib; {
26+ description = "Emoji as a Service (formerly EmojiOne)";
27+ homepage = https://www.joypixels.com/;
28+ license = licenses.unfree;
29+ maintainers = with maintainers; [ jtojnar ];
30+ };
31+}