Merge pull request #200758 from drupol/add-github-fonts
Add Hubot and Mona GitHub fonts
This commit is contained in:
commit
95ea01612f
37
pkgs/data/fonts/hubot-sans/default.nix
Normal file
37
pkgs/data/fonts/hubot-sans/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "hubot-sans";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v" + version;
|
||||
owner = "github";
|
||||
repo = pname;
|
||||
sha256 = "GOql+V5TH4b3TmhlgnKcx3jzUAO2jm4HRJRNzdIKxgg=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
install -m644 --target $out/share/fonts/truetype/hubot-sans -D $src/dist/hubot-sans.ttf
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A variable font from GitHub";
|
||||
homepage = "https://github.com/github/hubot-sans";
|
||||
license = lib.licenses.ofl;
|
||||
longDescription = ''
|
||||
Hubot Sans is Mona Sans’s robotic sidekick. The typeface is designed with
|
||||
more geometric accents to lend a technical and idiosyncratic feel—perfect
|
||||
for headers and pull-quotes. Made together with Degarism.
|
||||
|
||||
Hubot 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.
|
||||
'';
|
||||
maintainers = with lib.maintainers; [ drupol ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
39
pkgs/data/fonts/mona-sans/default.nix
Normal file
39
pkgs/data/fonts/mona-sans/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -26436,6 +26436,8 @@ with pkgs;
|
||||
|
||||
hermit = callPackage ../data/fonts/hermit { };
|
||||
|
||||
hubot-sans = callPackage ../data/fonts/hubot-sans { };
|
||||
|
||||
humanity-icon-theme = callPackage ../data/icons/humanity-icon-theme { };
|
||||
|
||||
hyperscrypt-font = callPackage ../data/fonts/hyperscrypt { };
|
||||
@ -26653,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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user