Install twemoji-ttf, twemoji-color-font displays as outline
This commit is contained in:
parent
a8703a640e
commit
8d78d92084
2 changed files with 27 additions and 0 deletions
|
@ -54,6 +54,7 @@ in
|
||||||
mplus-outline-fonts.osdnRelease
|
mplus-outline-fonts.osdnRelease
|
||||||
noto-fonts
|
noto-fonts
|
||||||
(nerdfonts.override { fonts = [ "FiraCode" ]; }) # required for icons
|
(nerdfonts.override { fonts = [ "FiraCode" ]; }) # required for icons
|
||||||
|
(pkgs.callPackage ../twemoji.nix {})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
26
twemoji.nix
Normal file
26
twemoji.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{ lib, stdenv, fetchurl }:
|
||||||
|
|
||||||
|
let
|
||||||
|
_fedrel = "2.fc37";
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "ttf-twemoji";
|
||||||
|
version = "14.0.2";
|
||||||
|
|
||||||
|
src = builtins.fetchTarball {
|
||||||
|
url = "https://kojipkgs.fedoraproject.org/packages/twitter-twemoji-fonts/${version}/${_fedrel}/noarch/twitter-twemoji-fonts-${version}-${_fedrel}.noarch.rpm";
|
||||||
|
sha256 = "sha256:11ay3jc4qd3z1mnijnwdns4bi22y204lva7l7vkazybx1nzrwscl";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -Dm755 share/fonts/twemoji/Twemoji.ttf $out/share/fonts/truetype/Twemoji.ttf
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Twitter Color Emoji for everyone.";
|
||||||
|
homepage = "https://github.com/twitter/twemoji";
|
||||||
|
license = with licenses; [ cc-by-40 mit ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue