twemoji-color-font-src: init at 15.1.0 (#481749)

This commit is contained in:
Naïm Camille Favier
2026-03-08 15:02:48 +00:00
committed by GitHub
2 changed files with 64 additions and 1 deletions
@@ -0,0 +1,63 @@
{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
twemoji-color-font,
imagemagick,
inkscape,
nodePackages,
potrace,
scfbuild,
which,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "twemoji-color-font";
version = "15.1.0";
src = fetchFromGitHub {
owner = "13rac1";
repo = "twemoji-color-font";
rev = "v${finalAttrs.version}";
hash = "sha256-Nx6zyj6FLFFyWz0vbbN3eYk2WRns7IVG6lDvLOmSf6E=";
};
nativeBuildInputs = [
imagemagick
inkscape
nodePackages.svgo
potrace
scfbuild
which
];
# silence inkscape errors about non-writable home
preBuild = "export HOME=\"$NIX_BUILD_ROOT\"";
buildFlags = [
"SCFBUILD=${scfbuild}/bin/scfbuild"
"linux-package"
];
enableParallelBuilding = true;
installPhase = ''
runHook preInstall
install -Dm755 build/TwitterColorEmoji-SVGinOT.ttf $out/share/fonts/truetype/TwitterColorEmoji-SVGinOT.ttf
install -Dm644 linux/fontconfig/46-twemoji-color.conf $out/etc/fonts/conf.d/46-twemoji-color.conf
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
inherit (twemoji-color-font.meta)
description
longDescription
homepage
downloadPage
license
;
maintainers = [ lib.maintainers.ncfavier ];
hydraPlatforms = [ ]; # https://github.com/NixOS/nixpkgs/issues/97871
};
})
@@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = nix-update-script { };
meta = {
description = "Color emoji SVGinOT font using Twitter Unicode 10 emoji with diversity and country flags";
description = "Color emoji SVGinOT font using Twitter Unicode 15 emoji with diversity and country flags";
longDescription = ''
A color and B&W emoji SVGinOT font built from the Twitter Emoji for
Everyone artwork with support for ZWJ, skin tone diversity and country