diff --git a/pkgs/data/fonts/mona-sans/default.nix b/pkgs/data/fonts/mona-sans/default.nix new file mode 100644 index 000000000000..b43a01b4fecf --- /dev/null +++ b/pkgs/data/fonts/mona-sans/default.nix @@ -0,0 +1,39 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +}: + +stdenvNoCC.mkDerivation rec { + pname = "mona-sans"; + version = "1.0"; + + src = fetchFromGitHub { + rev = "v" + version; + owner = "github"; + repo = pname; + sha256 = "iJhbSGNByOvtJd9hEh0g7Ht6eoAJ18jco0oHGqjOiLQ="; + }; + + installPhase = '' + install -m644 --target $out/share/fonts/truetype/mona-sans -D $src/dist/*.ttf + ''; + + meta = { + description = "A variable font from GitHub"; + homepage = "https://github.com/github/mona-sans"; + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2c9ed1f2a477..4e945d30916a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26655,6 +26655,8 @@ with pkgs; moka-icon-theme = callPackage ../data/icons/moka-icon-theme { }; + mona-sans = callPackage ../data/fonts/mona-sans { }; + monoid = callPackage ../data/fonts/monoid { }; mononoki = callPackage ../data/fonts/mononoki { };