nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchFromGitHub }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "TT2020";
5 version = "0.2.1";
6
7 src = fetchFromGitHub {
8 owner = "ctrlcctrlv";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-eAJzaookHcQ/7QNq/HUKA/O2liyKynJNdo6QuZ1Bv6k=";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 install -Dm644 -t $out/share/fonts/truetype dist/*.ttf
18 install -Dm644 -t $out/share/fonts/woff2 dist/*.woff2
19
20 runHook postInstall
21 '';
22
23 meta = with lib; {
24 description = "An advanced, open source, hyperrealistic, multilingual typewriter font for a new decade";
25 homepage = "https://ctrlcctrlv.github.io/TT2020";
26 license = licenses.ofl;
27 maintainers = with maintainers; [ sikmir ];
28 platforms = platforms.all;
29 };
30}