1{ lib, fetchFromGitHub, stdenvNoCC }:
2
3stdenvNoCC.mkDerivation {
4 pname = "chunk";
5 version = "2021-03-03";
6
7 src = fetchFromGitHub {
8 owner = "theleagueof";
9 repo = "chunk";
10 rev = "12a243f3fb7c7a68844901023f7d95d6eaf14104";
11 hash = "sha256-NMkRvrUgy9yzOT3a1rN6Ch/p8Cr902CwL4G0w7jVm1E=";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
18 install -D -m444 -t $out/share/fonts/opentype $src/*.otf
19
20 runHook postInstall
21 '';
22
23 meta = {
24 description = "Ultra-bold, ultra-awesome slab serif typeface";
25 longDescription = ''
26 Chunk is an ultra-bold slab serif typeface that is reminiscent of old
27 American Western woodcuts, broadsides, and newspaper headlines. Used
28 mainly for display, the fat block lettering is unreserved yet refined for
29 contemporary use.
30
31 In 2014, a new textured style was created by Tyler Finck called Chunk
32 Five Print. It contains the same glyphs as the original.
33 '';
34 homepage = "https://www.theleagueofmoveabletype.com/chunk";
35 license = lib.licenses.ofl;
36 maintainers = with lib.maintainers; [ minijackson ];
37 };
38}