summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-15 18:01:27 +0000
committerGitHub <noreply@github.com>2021-07-15 18:01:27 +0000
commit2ccf7ae45ce2efe48f207625d3db71149f7ac41b (patch)
tree7f4cd91ee5de25c631a97f1c6ce1d9e5c35722d9 /pkgs/data
parentbb74d3b2df7bc063eae2a1ec166768d6d35f09d3 (diff)
parent301e023293ff1ece7005a26c0b39409e1e13baa2 (diff)
downloadnixpkgs-2ccf7ae45ce2efe48f207625d3db71149f7ac41b.tar
nixpkgs-2ccf7ae45ce2efe48f207625d3db71149f7ac41b.tar.gz
nixpkgs-2ccf7ae45ce2efe48f207625d3db71149f7ac41b.tar.bz2
nixpkgs-2ccf7ae45ce2efe48f207625d3db71149f7ac41b.tar.lz
nixpkgs-2ccf7ae45ce2efe48f207625d3db71149f7ac41b.tar.xz
nixpkgs-2ccf7ae45ce2efe48f207625d3db71149f7ac41b.tar.zst
nixpkgs-2ccf7ae45ce2efe48f207625d3db71149f7ac41b.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/fonts/kanit/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/data/fonts/kanit/default.nix b/pkgs/data/fonts/kanit/default.nix
new file mode 100644
index 00000000000..9b5be79061c
--- /dev/null
+++ b/pkgs/data/fonts/kanit/default.nix
@@ -0,0 +1,39 @@
+{ lib, stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  pname = "kanit";
+  version = "unstable-2020-06-16";
+
+  src = fetchFromGitHub {
+    owner = "cadsondemak";
+    repo = pname;
+    rev = "467dfe842185681d8042cd608b8291199dd37cda";
+    sha256 = "0p0klb0376r8ki4ap2j99j7jcsq6wgb7m1hf3j1dkncwm7ikmg3h";
+  };
+
+  installPhase = ''
+    mkdir -p $out/share/doc/${pname}/css/ $out/share/fonts/{opentype,truetype}
+
+    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
+    cp $src/fonts/otf/*.otf $out/share/fonts/opentype
+    cp $src/fonts/ttf/*.ttf $out/share/fonts/truetype
+  '';
+
+  meta = with lib; {
+    homepage = "https://cadsondemak.github.io/kanit/";
+    description = "A loopless Thai and sans serif Latin typeface for contemporary and futuristic uses";
+    longDescription = ''
+      Kanit means mathematics in Thai, and the Kanit typeface family is a formal
+      Loopless Thai and Sans Latin design. It is a combination of concepts,
+      mixing a Humanist Sans Serif motif with the curves of Capsulated Geometric
+      styles that makes it suitable for various uses, contemporary and
+      futuristic. A notable detail is that the stroke terminals have flat angles,
+      which allows the design to enjoy decreased spacing between letters while
+      preserving readability and legibility at smaller point sizes.
+    '';
+    license = licenses.ofl;
+    platforms = platforms.all;
+    maintainers = [ maintainers.toastal ];
+  };
+}