depot/pkgs/by-name/ma/major-mono-display/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

39 lines
1.3 KiB
Nix

{ 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 ];
};
}