Merge pull request #130213 from toastal/kanit

authored by Sandro and committed by GitHub 301e0232 3c58000c

+51
+10
maintainers/maintainer-list.nix
··· 10678 githubId = 9853194; 10679 name = "Philipp Bartsch"; 10680 }; 10681 tobim = { 10682 email = "nix@tobim.fastmail.fm"; 10683 github = "tobim";
··· 10678 githubId = 9853194; 10679 name = "Philipp Bartsch"; 10680 }; 10681 + toastal = { 10682 + email = "toastal+nix@posteo.net"; 10683 + github = "toastal"; 10684 + githubId = 561087; 10685 + name = "toastal"; 10686 + keys = [{ 10687 + longkeyid = "ed25519/5CCE6F1466D47C9E"; 10688 + fingerprint = "7944 74B7 D236 DAB9 C9EF E7F9 5CCE 6F14 66D4 7C9E"; 10689 + }]; 10690 + }; 10691 tobim = { 10692 email = "nix@tobim.fastmail.fm"; 10693 github = "tobim";
+39
pkgs/data/fonts/kanit/default.nix
···
··· 1 + { lib, stdenv, fetchFromGitHub }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "kanit"; 5 + version = "unstable-2020-06-16"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "cadsondemak"; 9 + repo = pname; 10 + rev = "467dfe842185681d8042cd608b8291199dd37cda"; 11 + sha256 = "0p0klb0376r8ki4ap2j99j7jcsq6wgb7m1hf3j1dkncwm7ikmg3h"; 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; { 24 + homepage = "https://cadsondemak.github.io/kanit/"; 25 + description = "A loopless Thai and sans serif Latin typeface for contemporary and futuristic uses"; 26 + longDescription = '' 27 + Kanit means mathematics in Thai, and the Kanit typeface family is a formal 28 + Loopless Thai and Sans Latin design. It is a combination of concepts, 29 + mixing a Humanist Sans Serif motif with the curves of Capsulated Geometric 30 + styles that makes it suitable for various uses, contemporary and 31 + futuristic. A notable detail is that the stroke terminals have flat angles, 32 + which allows the design to enjoy decreased spacing between letters while 33 + preserving readability and legibility at smaller point sizes. 34 + ''; 35 + license = licenses.ofl; 36 + platforms = platforms.all; 37 + maintainers = [ maintainers.toastal ]; 38 + }; 39 + }
+2
pkgs/top-level/all-packages.nix
··· 22310 22311 juno-theme = callPackage ../data/themes/juno { }; 22312 22313 kanji-stroke-order-font = callPackage ../data/fonts/kanji-stroke-order-font {}; 22314 22315 kawkab-mono-font = callPackage ../data/fonts/kawkab-mono {};
··· 22310 22311 juno-theme = callPackage ../data/themes/juno { }; 22312 22313 + kanit-font = callPackage ../data/fonts/kanit { }; 22314 + 22315 kanji-stroke-order-font = callPackage ../data/fonts/kanji-stroke-order-font {}; 22316 22317 kawkab-mono-font = callPackage ../data/fonts/kawkab-mono {};