···11+{ lib, stdenv, fetchFromGitHub }:
22+33+stdenv.mkDerivation rec {
44+ pname = "chonburi";
55+ version = "unstable-2021-09-15";
66+77+ src = fetchFromGitHub {
88+ owner = "cadsondemak";
99+ repo = pname;
1010+ rev = "daf26bf77d82fba50eaa3aa3fad905cb9f6b5e28";
1111+ sha256 = "sha256-oC7ZCfNOyvGtqT9+Ap/CfCHzdWNzeCuac2dJ9fctgB8=";
1212+ };
1313+1414+ installPhase = ''
1515+ runHook preInstall
1616+1717+ mkdir -p $out/share/doc/chonburi $out/share/fonts/{opentype,truetype}
1818+1919+ cp $src/OFL.txt $src/BRIEF.md $out/share/doc/chonburi
2020+ cp $src/fonts/*.otf $out/share/fonts/opentype
2121+ cp $src/fonts/*.ttf $out/share/fonts/truetype
2222+2323+ runHook postInstall
2424+ '';
2525+2626+ meta = with lib; {
2727+ homepage = "https://cadsondemak.github.io/chonburi/";
2828+ description = "A Didonic Thai and Latin display typeface";
2929+ longDescription = ''
3030+ The objective of this project is to create a Thai and Latin Display
3131+ typeface. Chonburi is a display typeface with high contrast in a Didone
3232+ style. This single-weight typeface provides advance typographical support
3333+ with features such as discretionary ligature. This font can be extended
3434+ the family to other weights including both narrow and extended version. It
3535+ is also ready to be matched with other non-Latin script.
3636+ '';
3737+ license = licenses.ofl;
3838+ platforms = platforms.all;
3939+ maintainers = [ maintainers.toastal ];
4040+ };
4141+}