Merge pull request #138131 from toastal/chonburi-font
chonburi-font: init at unstable-2021-09-15
This commit is contained in:
commit
3987f9c0c6
3 changed files with 50 additions and 3 deletions
41
pkgs/data/fonts/chonburi/default.nix
Normal file
41
pkgs/data/fonts/chonburi/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "chonburi";
|
||||
version = "unstable-2021-09-15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cadsondemak";
|
||||
repo = pname;
|
||||
rev = "daf26bf77d82fba50eaa3aa3fad905cb9f6b5e28";
|
||||
sha256 = "sha256-oC7ZCfNOyvGtqT9+Ap/CfCHzdWNzeCuac2dJ9fctgB8=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/doc/chonburi $out/share/fonts/{opentype,truetype}
|
||||
|
||||
cp $src/OFL.txt $src/BRIEF.md $out/share/doc/chonburi
|
||||
cp $src/fonts/*.otf $out/share/fonts/opentype
|
||||
cp $src/fonts/*.ttf $out/share/fonts/truetype
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://cadsondemak.github.io/chonburi/";
|
||||
description = "A Didonic Thai and Latin display typeface";
|
||||
longDescription = ''
|
||||
The objective of this project is to create a Thai and Latin Display
|
||||
typeface. Chonburi is a display typeface with high contrast in a Didone
|
||||
style. This single-weight typeface provides advance typographical support
|
||||
with features such as discretionary ligature. This font can be extended
|
||||
the family to other weights including both narrow and extended version. It
|
||||
is also ready to be matched with other non-Latin script.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.toastal ];
|
||||
};
|
||||
}
|
|
@ -12,12 +12,16 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/doc/${pname}/css/ $out/share/fonts/{opentype,truetype}
|
||||
runHook preInstall
|
||||
|
||||
cp $src/OFL.txt $src/documentation/{BRIEF.md,features.html} $out/share/doc/${pname}
|
||||
cp $src/documentation/css/fonts.css $out/share/doc/${pname}/css
|
||||
mkdir -p $out/share/doc/kanit/css/ $out/share/fonts/{opentype,truetype}
|
||||
|
||||
cp $src/OFL.txt $src/documentation/{BRIEF.md,features.html} $out/share/doc/kanit
|
||||
cp $src/documentation/css/fonts.css $out/share/doc/kanit/css
|
||||
cp $src/fonts/otf/*.otf $out/share/fonts/opentype
|
||||
cp $src/fonts/ttf/*.ttf $out/share/fonts/truetype
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -22317,6 +22317,8 @@ with pkgs;
|
|||
|
||||
cherry = callPackage ../data/fonts/cherry { inherit (xorg) fonttosfnt mkfontdir; };
|
||||
|
||||
chonburi-font = callPackage ../data/fonts/chonburi { };
|
||||
|
||||
cldr-emoji-annotation = callPackage ../data/misc/cldr-emoji-annotation { };
|
||||
|
||||
clearlooks-phenix = callPackage ../data/themes/clearlooks-phenix { };
|
||||
|
|
Loading…
Reference in a new issue