summary refs log tree commit diff
path: root/pkgs/data/fonts/tt2020/default.nix
blob: 63b4e1834a3b063dc79cb92b14f2bbce8a880fa0 (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
{ lib, stdenvNoCC, fetchFromGitHub }:

stdenvNoCC.mkDerivation rec {
  pname = "TT2020";
  version = "0.2.1";

  src = fetchFromGitHub {
    owner = "ctrlcctrlv";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-eAJzaookHcQ/7QNq/HUKA/O2liyKynJNdo6QuZ1Bv6k=";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 -t $out/share/fonts/truetype dist/*.ttf
    install -Dm644 -t $out/share/fonts/woff2 dist/*.woff2

    runHook postInstall
  '';

  meta = with lib; {
    description = "An advanced, open source, hyperrealistic, multilingual typewriter font for a new decade";
    homepage = "https://ctrlcctrlv.github.io/TT2020";
    license = licenses.ofl;
    maintainers = with maintainers; [ sikmir ];
    platforms = platforms.all;
  };
}