Add packages for Nunito and Nunito Sans fonts (#488020)

This commit is contained in:
Doron Behar
2026-02-16 22:23:12 +00:00
committed by GitHub
3 changed files with 82 additions and 0 deletions
+7
View File
@@ -1444,6 +1444,13 @@
githubId = 373;
name = "Alexandre Girard Davila";
};
alyamanmas = {
email = "alyaman.maasarani@gmail.com";
github = "AlyamanMas";
githubId = 33905034;
name = "Alyaman Huzaifa Massarani";
keys = [ { fingerprint = "570D 147B 9514 08C6 2CD8 D530 515E 428A C916 D39C"; } ];
};
amaanq = {
email = "contact@amaanq.com";
github = "amaanq";
+39
View File
@@ -0,0 +1,39 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation {
pname = "nunito-sans";
version = "0-unstable-2023-03-31";
src = fetchFromGitHub {
owner = "googlefonts";
repo = "NunitoSans";
rev = "058bd7a2f33d6ad5ef1df985b3db403622016a8c";
hash = "sha256-JfEu/QJNs4zvlFiHxevLWFva+I48Cv5C0NZM0o7k7oo=";
};
installPhase = ''
runHook preInstall
install -Dm644 fonts/variable/*.ttf -t $out/share/fonts/truetype/NunitoSans/variable
install -Dm644 fonts/ttf/*.ttf -t $out/share/fonts/truetype/NunitoSans/static
runHook postInstall
'';
meta = {
description = "Nunito is a well balanced sans serif typeface superfamily";
longDescription = ''
Nunito is a well balanced sans serif typeface superfamily, with 2 versions: The project began with Nunito, created by Vernon Adams as a rounded terminal sans serif for display typography. Jacques Le Bailly extended it to a full set of weights, and an accompanying regular non-rounded terminal version, Nunito Sans.
In February 2023, Nunito Sans has been upgraded to a variable font with four axes: ascenders high, optical size, width and weight. Cyrillic has been added and the language support expanded.
'';
homepage = "https://fonts.google.com/specimen/Nunito+Sans";
license = lib.licenses.ofl;
platforms = lib.platforms.all;
maintainers = [ lib.maintainers.alyamanmas ];
};
}
+36
View File
@@ -0,0 +1,36 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation {
pname = "nunito";
version = "0-unstable-2025-02-26";
src = fetchFromGitHub {
owner = "googlefonts";
repo = "nunito";
rev = "8c6a9bb9732545b9ed53f29ec5e1ab0ff53c4e6f";
hash = "sha256-m276Gnkwpd+MjHo4mPU1RBcTs34puao7Wi+OOEuTuI0=";
};
installPhase = ''
runHook preInstall
install -Dm644 fonts/variable/*.ttf -t $out/share/fonts/truetype/Nunito
runHook postInstall
'';
meta = {
description = "Nunito is a well balanced sans serif typeface superfamily";
longDescription = ''
Nunito is a well balanced sans serif typeface superfamily, with 2 versions: The project began with Nunito, created by Vernon Adams as a rounded terminal sans serif for display typography. Jacques Le Bailly extended it to a full set of weights, and an accompanying regular non-rounded terminal version, Nunito Sans.
'';
homepage = "https://fonts.google.com/specimen/Nunito";
license = lib.licenses.ofl;
platforms = lib.platforms.all;
maintainers = [ lib.maintainers.alyamanmas ];
};
}