···1+{ lib
2+, stdenvNoCC
3+, fetchFromGitHub
4+}:
5+6+stdenvNoCC.mkDerivation rec {
7+ pname = "hubot-sans";
8+ version = "1.0";
9+10+ src = fetchFromGitHub {
11+ rev = "v" + version;
12+ owner = "github";
13+ repo = pname;
14+ sha256 = "GOql+V5TH4b3TmhlgnKcx3jzUAO2jm4HRJRNzdIKxgg=";
15+ };
16+17+ installPhase = ''
18+ install -m644 --target $out/share/fonts/truetype/hubot-sans -D $src/dist/hubot-sans.ttf
19+ '';
20+21+ meta = {
22+ description = "A variable font from GitHub";
23+ homepage = "https://github.com/github/hubot-sans";
24+ license = lib.licenses.ofl;
25+ longDescription = ''
26+ Hubot Sans is Mona Sans’s robotic sidekick. The typeface is designed with
27+ more geometric accents to lend a technical and idiosyncratic feel—perfect
28+ for headers and pull-quotes. Made together with Degarism.
29+30+ Hubot Sans is a variable font. Variable fonts enable different variations
31+ of a typeface to be incorporated into one single file, and are supported
32+ by all major browsers.
33+ '';
34+ maintainers = with lib.maintainers; [ drupol ];
35+ platforms = lib.platforms.all;
36+ };
37+}