2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
2024-04-21 15:54:59 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rename
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "noto-fonts-monochrome-emoji";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.000";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "fonts";
|
|
|
|
rev = "a73b9ab0a5df191bcfed817159a903911ea7958a";
|
|
|
|
hash = "sha256-qVFU4uZius8oFPJCIL9ek2YdS3jru5mmTHp2L9RIXfg=";
|
|
|
|
sparseCheckout = [ "ofl/notoemoji" ];
|
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
install -m444 -Dt $out/share/fonts/noto ofl/notoemoji/*.ttf
|
|
|
|
${rename}/bin/rename 's/\[.*\]//' $out/share/fonts/noto/*
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
meta = {
|
|
|
|
description = "Monochrome emoji font";
|
|
|
|
homepage = "https://fonts.google.com/noto/specimen/Noto+Emoji";
|
|
|
|
license = [ lib.licenses.ofl ];
|
|
|
|
maintainers = [ lib.maintainers.nicoo ];
|
|
|
|
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
|
|
|
|
};
|
|
|
|
}
|