2023-12-06 18:37:56 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
2024-02-19 21:00:47 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rename
|
2023-12-06 18:37:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "noto-fonts-monochrome-emoji";
|
2024-02-19 21:00:47 +00:00
|
|
|
version = "3.000";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "fonts";
|
|
|
|
rev = "a73b9ab0a5df191bcfed817159a903911ea7958a";
|
|
|
|
hash = "sha256-qVFU4uZius8oFPJCIL9ek2YdS3jru5mmTHp2L9RIXfg=";
|
|
|
|
sparseCheckout = [ "ofl/notoemoji" ];
|
|
|
|
};
|
2023-12-06 18:37:56 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2024-02-19 21:00:47 +00:00
|
|
|
|
|
|
|
install -m444 -Dt $out/share/fonts/noto ofl/notoemoji/*.ttf
|
|
|
|
${rename}/bin/rename 's/\[.*\]//' $out/share/fonts/noto/*
|
|
|
|
|
2023-12-06 18:37:56 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-02-19 21:00:47 +00:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2023-12-06 18:37:56 +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 ];
|
|
|
|
};
|
|
|
|
}
|