···1+{ lib, stdenv, fetchFromGitHub }:
2+3+stdenv.mkDerivation rec {
4+ pname = "kanit";
5+ version = "unstable-2020-06-16";
6+7+ src = fetchFromGitHub {
8+ owner = "cadsondemak";
9+ repo = pname;
10+ rev = "467dfe842185681d8042cd608b8291199dd37cda";
11+ sha256 = "0p0klb0376r8ki4ap2j99j7jcsq6wgb7m1hf3j1dkncwm7ikmg3h";
12+ };
13+14+ installPhase = ''
15+ mkdir -p $out/share/doc/${pname}/css/ $out/share/fonts/{opentype,truetype}
16+17+ cp $src/OFL.txt $src/documentation/{BRIEF.md,features.html} $out/share/doc/${pname}
18+ cp $src/documentation/css/fonts.css $out/share/doc/${pname}/css
19+ cp $src/fonts/otf/*.otf $out/share/fonts/opentype
20+ cp $src/fonts/ttf/*.ttf $out/share/fonts/truetype
21+ '';
22+23+ meta = with lib; {
24+ homepage = "https://cadsondemak.github.io/kanit/";
25+ description = "A loopless Thai and sans serif Latin typeface for contemporary and futuristic uses";
26+ longDescription = ''
27+ Kanit means mathematics in Thai, and the Kanit typeface family is a formal
28+ Loopless Thai and Sans Latin design. It is a combination of concepts,
29+ mixing a Humanist Sans Serif motif with the curves of Capsulated Geometric
30+ styles that makes it suitable for various uses, contemporary and
31+ futuristic. A notable detail is that the stroke terminals have flat angles,
32+ which allows the design to enjoy decreased spacing between letters while
33+ preserving readability and legibility at smaller point sizes.
34+ '';
35+ license = licenses.ofl;
36+ platforms = platforms.all;
37+ maintainers = [ maintainers.toastal ];
38+ };
39+}