···11+{ lib
22+, stdenvNoCC
33+, fetchFromGitHub
44+}:
55+66+stdenvNoCC.mkDerivation rec {
77+ pname = "hubot-sans";
88+ version = "1.0";
99+1010+ src = fetchFromGitHub {
1111+ rev = "v" + version;
1212+ owner = "github";
1313+ repo = pname;
1414+ sha256 = "GOql+V5TH4b3TmhlgnKcx3jzUAO2jm4HRJRNzdIKxgg=";
1515+ };
1616+1717+ installPhase = ''
1818+ install -m644 --target $out/share/fonts/truetype/hubot-sans -D $src/dist/hubot-sans.ttf
1919+ '';
2020+2121+ meta = {
2222+ description = "A variable font from GitHub";
2323+ homepage = "https://github.com/github/hubot-sans";
2424+ license = lib.licenses.ofl;
2525+ longDescription = ''
2626+ Hubot Sans is Mona Sans’s robotic sidekick. The typeface is designed with
2727+ more geometric accents to lend a technical and idiosyncratic feel—perfect
2828+ for headers and pull-quotes. Made together with Degarism.
2929+3030+ Hubot Sans is a variable font. Variable fonts enable different variations
3131+ of a typeface to be incorporated into one single file, and are supported
3232+ by all major browsers.
3333+ '';
3434+ maintainers = with lib.maintainers; [ drupol ];
3535+ platforms = lib.platforms.all;
3636+ };
3737+}