2016-06-11 00:47:34 +02:00
|
|
|
{ stdenv, fetchFromGitHub, inkscape, imagemagick, potrace, svgo, scfbuild }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "emojione-${version}";
|
2016-08-13 02:07:33 +02:00
|
|
|
version = "1.3";
|
2016-06-11 00:47:34 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eosrei";
|
|
|
|
repo = "emojione-color-font";
|
|
|
|
rev = "v${version}";
|
2016-08-13 02:07:33 +02:00
|
|
|
sha256 = "0hgs661g1j91lkafhrfx5ix7ymarh5bzcx34r2id6jl7dc3j41l3";
|
2016-06-11 00:47:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://emojione.com/;
|
2017-05-10 21:25:26 +02:00
|
|
|
license = licenses.cc-by-40;
|
2018-03-17 18:34:56 +01:00
|
|
|
platforms = platforms.linux;
|
2016-06-11 00:47:34 +02:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|