Files
nixpkgs/pkgs/by-name/mo/mona-sans/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
1.3 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "mona-sans";
version = "2.0";
src = fetchFromGitHub {
rev = "v${finalAttrs.version}";
owner = "github";
repo = "mona-sans";
sha256 = "sha256-pFc6EUzf4FlA0LVdDEnFNr7m5V1FLc4jTAvtZdOslTg=";
};
installPhase = ''
install -D -m444 -t $out/share/fonts/opentype fonts/otf/*.otf
install -D -m444 -t $out/share/fonts/truetype fonts/ttf/*.ttf fonts/variable/*.ttf
'';
meta = {
description = "Variable font from GitHub";
homepage = "https://github.com/mona-sans";
changelog = "https://github.com/github/mona-sans/releases/tag/v${finalAttrs.version}";
license = lib.licenses.ofl;
longDescription = ''
A strong and versatile typeface, designed together with Degarism and
inspired by industrial-era grotesques. Mona Sans works well across
product, web, and print. Made to work well together with Mona Sans's
sidekick, Hubot Sans.
Mona Sans is a variable font. Variable fonts enable different variations
of a typeface to be incorporated into one single file, and are supported
by all major browsers, allowing for performance benefits and granular
design control of the typeface's weight, width, and slant.
'';
maintainers = [ ];
platforms = lib.platforms.all;
};
})