depot/third_party/nixpkgs/pkgs/data/fonts/mona-sans/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

41 lines
1.4 KiB
Nix

{ lib
, stdenvNoCC
, fetchFromGitHub
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "mona-sans";
version = "1.0.1";
src = fetchFromGitHub {
rev = "v${finalAttrs.version}";
owner = "github";
repo = "mona-sans";
sha256 = "sha256-XvqLFzlgIqx9aZH2SEAtwMiuWgUiDi/gHGSpfreUHuk=";
};
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 = with lib.maintainers; [ drupol ];
platforms = lib.platforms.all;
};
})