2016-06-10 23:47:34 +01:00
|
|
|
{ stdenv, fetchFromGitHub, inkscape, imagemagick, potrace, svgo, scfbuild }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "emojione";
|
2019-02-27 19:42:11 +00:00
|
|
|
version = "1.4";
|
2016-06-10 23:47:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eosrei";
|
|
|
|
repo = "emojione-color-font";
|
|
|
|
rev = "v${version}";
|
2019-02-27 19:42:11 +00:00
|
|
|
sha256 = "1781kxfbhnvylypbkwxc3mx6hi0gcjisfjr9cf0jdz4d1zkf09b3";
|
2016-06-10 23:47:34 +01: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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://emojione.com/";
|
2017-05-10 20:25:26 +01:00
|
|
|
license = licenses.cc-by-40;
|
2016-06-10 23:47:34 +01:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|