about summary refs log tree commit diff
path: root/pkgs/data/fonts/amiri
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-06-26 05:36:56 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2019-06-27 08:03:06 +0000
commit85109b92cded4c3a4b9128f3fd99e676143f2faf (patch)
tree903ceaff4d6a301e10330a940b331b33a41afb61 /pkgs/data/fonts/amiri
parent4259498fe6579a8374d926d529e0fae17cef742b (diff)
amiri: init at 0.111
Amiri is a classical Arabic typeface in Naskh style for typesetting books and
other running text.

Homepage: https://www.amirifont.org/
Diffstat (limited to 'pkgs/data/fonts/amiri')
-rw-r--r--pkgs/data/fonts/amiri/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/data/fonts/amiri/default.nix b/pkgs/data/fonts/amiri/default.nix
new file mode 100644
index 0000000000000..36d8ed3c67473
--- /dev/null
+++ b/pkgs/data/fonts/amiri/default.nix
@@ -0,0 +1,27 @@
+{ lib, fetchzip }:
+
+let
+  version = "0.111";
+
+in fetchzip rec {
+  name = "Amiri-${version}";
+
+  url = "https://github.com/alif-type/amiri/releases/download/${version}/${name}.zip";
+
+  sha256 = "1w3a5na4mazspwy8j2hvpjha10sgd287kamm51p49jcr90cvwbdr";
+
+  postFetch = ''
+    unzip $downloadedFile
+    install -m444 -Dt $out/share/fonts/truetype ${name}/*.ttf
+    install -m444 -Dt $out/share/doc/${name}    ${name}/{*.txt,*.pdf}
+  '';
+
+  meta = with lib; {
+    description = "A classical Arabic typeface in Naskh style";
+    homepage = "https://www.amirifont.org/";
+    license = licenses.ofl;
+    maintainers = [ maintainers.vbgl ];
+    platforms = platforms.all;
+  };
+}
+