···1+{ lib, stdenv, fetchFromGitHub }:
2+3+stdenv.mkDerivation rec {
4+ pname = "chonburi";
5+ version = "unstable-2021-09-15";
6+7+ src = fetchFromGitHub {
8+ owner = "cadsondemak";
9+ repo = pname;
10+ rev = "daf26bf77d82fba50eaa3aa3fad905cb9f6b5e28";
11+ sha256 = "sha256-oC7ZCfNOyvGtqT9+Ap/CfCHzdWNzeCuac2dJ9fctgB8=";
12+ };
13+14+ installPhase = ''
15+ runHook preInstall
16+17+ mkdir -p $out/share/doc/chonburi $out/share/fonts/{opentype,truetype}
18+19+ cp $src/OFL.txt $src/BRIEF.md $out/share/doc/chonburi
20+ cp $src/fonts/*.otf $out/share/fonts/opentype
21+ cp $src/fonts/*.ttf $out/share/fonts/truetype
22+23+ runHook postInstall
24+ '';
25+26+ meta = with lib; {
27+ homepage = "https://cadsondemak.github.io/chonburi/";
28+ description = "A Didonic Thai and Latin display typeface";
29+ longDescription = ''
30+ The objective of this project is to create a Thai and Latin Display
31+ typeface. Chonburi is a display typeface with high contrast in a Didone
32+ style. This single-weight typeface provides advance typographical support
33+ with features such as discretionary ligature. This font can be extended
34+ the family to other weights including both narrow and extended version. It
35+ is also ready to be matched with other non-Latin script.
36+ '';
37+ license = licenses.ofl;
38+ platforms = platforms.all;
39+ maintainers = [ maintainers.toastal ];
40+ };
41+}