From 4226b1ddf711b0ed429f8885c22ee5cca281f189 Mon Sep 17 00:00:00 2001 From: mimvoid Date: Sat, 20 Jul 2024 19:33:03 -0400 Subject: [PATCH] major-mono-display: init at 2.000 --- .../by-name/ma/major-mono-display/package.nix | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/ma/major-mono-display/package.nix diff --git a/pkgs/by-name/ma/major-mono-display/package.nix b/pkgs/by-name/ma/major-mono-display/package.nix new file mode 100644 index 000000000000..1bfca85b1c54 --- /dev/null +++ b/pkgs/by-name/ma/major-mono-display/package.nix @@ -0,0 +1,39 @@ +{ lib, stdenvNoCC, fetchFromGitHub }: + +stdenvNoCC.mkDerivation { + pname = "major-mono-display"; + version = "2.000"; + + src = fetchFromGitHub { + owner = "googlefonts"; + repo = "majormono"; + rev = "fae0bb9c728fe082097baedaf23604e290ddac16"; + hash = "sha256-ishGGr8bY6UjEG/Hn5We8hOO5mcDq/41+DMn+dQGGUA="; + }; + + installPhase = '' + runHook preInstall + + install -Dm444 -t $out/share/fonts/truetype fonts/*.ttf + + runHook postInstall + ''; + + meta = { + description = "Monospaced geometric sans serif all-uppercase typeface"; + longDescription = '' + Majör is a monospaced geometric sans serif all-uppercase typeface + which also has a complete set of constructivist display characters + with a playful attitude. It has many Opentype features but the basic + variation between serious/playful faces can be implemented on web use + where Opentype features can be hard to apply, thanks to the fact that + the sans serif and the display versions of the letterforms can be + reached via lowercase and uppercase options. This makes Majör a great + choice for web typography, especially at large point-sizes. + ''; + homepage = "https://github.com/googlefonts/majormono"; + license = lib.licenses.ofl; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ mimvoid ]; + }; +}