diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-06-11 01:47:34 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-06-23 06:32:06 +0300 |
commit | e6721e59c2c6b28414d82c7798b7a31f7517168a (patch) | |
tree | 7414196d0d4ab9b629fd47bf56457400fe32eae2 /pkgs/data/fonts/emojione | |
parent | 0167eef92e4365835ff8382f8f72eacc0f1b3b39 (diff) |
emojione: init at 1.2
Diffstat (limited to 'pkgs/data/fonts/emojione')
-rw-r--r-- | pkgs/data/fonts/emojione/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/data/fonts/emojione/default.nix b/pkgs/data/fonts/emojione/default.nix new file mode 100644 index 0000000000000..3e74ca9270a52 --- /dev/null +++ b/pkgs/data/fonts/emojione/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, inkscape, imagemagick, potrace, svgo, scfbuild }: + +stdenv.mkDerivation rec { + name = "emojione-${version}"; + version = "1.2"; + + src = fetchFromGitHub { + owner = "eosrei"; + repo = "emojione-color-font"; + rev = "v${version}"; + sha256 = "001c2bph4jcdg9arfmyxrscf1i09gvg44kqy28chjmhxzq99hpcg"; + }; + + preBuild = '' + sed -i 's,SCFBUILD :=.*,SCFBUILD := scfbuild,' Makefile + # Shut up inkscape's warnings + export HOME="$NIX_BUILD_ROOT" + ''; + + nativeBuildInputs = [ inkscape imagemagick potrace svgo scfbuild ]; + + enableParallelBuilding = true; + + installPhase = '' + install -Dm755 build/EmojiOneColor-SVGinOT.ttf $out/share/fonts/truetype/EmojiOneColor-SVGinOT.ttf + ''; + + meta = with stdenv.lib; { + description = "Open source emoji set"; + homepage = "http://emojione.com/"; + licenses = licenses.cc-by-40; + platforms = platforms.all; + maintainers = with maintainers; [ abbradar ]; + }; +} |