summaryrefslogtreecommitdiffstats
path: root/pkgs/data/fonts/inconsolata/default.nix
blob: 530bb0380d23fc147a4c6cc62fdc066f2c168bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ lib, stdenv, google-fonts }:

stdenv.mkDerivation {
  pname = "inconsolata";

  inherit (google-fonts) src version;

  installPhase = ''
    install -m644 --target $out/share/fonts/truetype/inconsolata -D $src/ofl/inconsolata/static/*.ttf
  '';

  meta = with lib; {
    homepage = "https://www.levien.com/type/myfonts/inconsolata.html";
    description = "A monospace font for both screen and print";
    maintainers = with maintainers; [ mikoim raskin rycee ];
    license = licenses.ofl;
    platforms = platforms.all;
  };
}