nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 43 lines 1.6 kB view raw
1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.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 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; { 28 homepage = "https://cadsondemak.github.io/kanit/"; 29 description = "A loopless Thai and sans serif Latin typeface for contemporary and futuristic uses"; 30 longDescription = '' 31 Kanit means mathematics in Thai, and the Kanit typeface family is a formal 32 Loopless Thai and Sans Latin design. It is a combination of concepts, 33 mixing a Humanist Sans Serif motif with the curves of Capsulated Geometric 34 styles that makes it suitable for various uses, contemporary and 35 futuristic. A notable detail is that the stroke terminals have flat angles, 36 which allows the design to enjoy decreased spacing between letters while 37 preserving readability and legibility at smaller point sizes. 38 ''; 39 license = licenses.ofl; 40 platforms = platforms.all; 41 maintainers = [ maintainers.toastal ]; 42 }; 43}