0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
34 lines
918 B
Nix
34 lines
918 B
Nix
{ stdenv, fetchFromGitHub, inkscape_0, imagemagick, potrace, svgo, scfbuild }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "emojione";
|
|
version = "1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eosrei";
|
|
repo = "emojione-color-font";
|
|
rev = "v${version}";
|
|
sha256 = "1781kxfbhnvylypbkwxc3mx6hi0gcjisfjr9cf0jdz4d1zkf09b3";
|
|
};
|
|
|
|
preBuild = ''
|
|
sed -i 's,SCFBUILD :=.*,SCFBUILD := scfbuild,' Makefile
|
|
# Shut up inkscape's warnings
|
|
export HOME="$NIX_BUILD_ROOT"
|
|
'';
|
|
|
|
nativeBuildInputs = [ inkscape_0 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/";
|
|
license = licenses.cc-by-40;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|