emojione: init at 1.2
This commit is contained in:
parent
0167eef92e
commit
e6721e59c2
35
pkgs/data/fonts/emojione/default.nix
Normal file
35
pkgs/data/fonts/emojione/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -11631,6 +11631,11 @@ in
|
||||
|
||||
faba-mono-icons = callPackage ../data/icons/faba-mono-icons { };
|
||||
|
||||
emojione = callPackage ../data/fonts/emojione {
|
||||
inherit (nodePackages) svgo;
|
||||
inherit (pythonPackages) scfbuild;
|
||||
};
|
||||
|
||||
fantasque-sans-mono = callPackage ../data/fonts/fantasque-sans-mono {};
|
||||
|
||||
fira = callPackage ../data/fonts/fira { };
|
||||
|
Loading…
Reference in New Issue
Block a user