Merge pull request #138131 from toastal/chonburi-font

chonburi-font: init at unstable-2021-09-15

authored by figsoda and committed by GitHub 3987f9c0 67bfb843

+50 -3
+41
pkgs/data/fonts/chonburi/default.nix
···
··· 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 + }
+7 -3
pkgs/data/fonts/kanit/default.nix
··· 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; {
··· 12 }; 13 14 installPhase = '' 15 + runHook preInstall 16 17 + mkdir -p $out/share/doc/kanit/css/ $out/share/fonts/{opentype,truetype} 18 + 19 + cp $src/OFL.txt $src/documentation/{BRIEF.md,features.html} $out/share/doc/kanit 20 + cp $src/documentation/css/fonts.css $out/share/doc/kanit/css 21 cp $src/fonts/otf/*.otf $out/share/fonts/opentype 22 cp $src/fonts/ttf/*.ttf $out/share/fonts/truetype 23 + 24 + runHook postInstall 25 ''; 26 27 meta = with lib; {
+2
pkgs/top-level/all-packages.nix
··· 22317 22318 cherry = callPackage ../data/fonts/cherry { inherit (xorg) fonttosfnt mkfontdir; }; 22319 22320 cldr-emoji-annotation = callPackage ../data/misc/cldr-emoji-annotation { }; 22321 22322 clearlooks-phenix = callPackage ../data/themes/clearlooks-phenix { };
··· 22317 22318 cherry = callPackage ../data/fonts/cherry { inherit (xorg) fonttosfnt mkfontdir; }; 22319 22320 + chonburi-font = callPackage ../data/fonts/chonburi { }; 22321 + 22322 cldr-emoji-annotation = callPackage ../data/misc/cldr-emoji-annotation { }; 22323 22324 clearlooks-phenix = callPackage ../data/themes/clearlooks-phenix { };