1 { lib, stdenv, fetchFromGitHub, fetchpatch, inkscape, imagemagick, potrace, svgo, scfbuild }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
9 repo = "emojione-color-font";
11 sha256 = "1781kxfbhnvylypbkwxc3mx6hi0gcjisfjr9cf0jdz4d1zkf09b3";
15 # Fix build with Inkscape 1.0
16 # https://github.com/eosrei/twemoji-color-font/pull/82
18 url = "https://github.com/eosrei/twemoji-color-font/commit/208ad63c2ceb38c528b5237abeb2b85ceedc1d37.patch";
19 sha256 = "7tDWIkpcdir1V6skgXSM3r0FwHy0F6PyJ07OPRsSStA=";
21 substituteInPlace $out \
22 --replace "inkscape --without-gui" "inkscape --export-png" \
23 --replace TWEMOJI EMOJIONE \
24 --replace "the assets" "the emojione assets" \
25 --replace twemoji emojione
31 sed -i 's,SCFBUILD :=.*,SCFBUILD := scfbuild,' Makefile
32 # Shut up inkscape's warnings
33 export HOME="$NIX_BUILD_ROOT"
36 nativeBuildInputs = [ inkscape imagemagick potrace svgo scfbuild ];
38 enableParallelBuilding = true;
41 install -Dm755 build/EmojiOneColor-SVGinOT.ttf $out/share/fonts/truetype/EmojiOneColor-SVGinOT.ttf
45 description = "Open source emoji set";
46 homepage = "http://emojione.com/";
47 license = licenses.cc-by-40;
48 maintainers = with maintainers; [ abbradar ];