about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/hubot-sans/default.nix
blob: 2458911fda389ca24edca8bd2d1afab77b9b9c5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
  };
}