git.iko.soy/typeable/nixpkgs
on master help sign in
chonburi-font: init at unstable-2021-09-15

OFL font: https://github.com/cadsondemak/chonburi

commit59740c03de7f6e3820f6f91e88175df2058b0689 authortoastal <toastal@posteo.net> dateThu 16 Sep 2021, 15:57 (5 years ago) parent2ad7295
2 files changed+43
pkgs/data/fonts/chonburi/default.nix+41 pkgs/top-level/all-packages.nix+2
pkgs/data/fonts/chonburi/default.nixnew file+41
@@ -0,0 +1,41 @@
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+}
pkgs/top-level/all-packages.nix+2
@@ -22313,6 +22313,8 @@ with pkgs;
2231322313
2231422314 cherry = callPackage ../data/fonts/cherry { inherit (xorg) fonttosfnt mkfontdir; };
2231522315
22316+ chonburi-font = callPackage ../data/fonts/chonburi { };
22317+
2231622318 cldr-emoji-annotation = callPackage ../data/misc/cldr-emoji-annotation { };
2231722319
2231822320 clearlooks-phenix = callPackage ../data/themes/clearlooks-phenix { };