about summary refs log tree commit diff
path: root/pkgs/data/fonts
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-10-21 21:23:59 +0200
committerGitHub <noreply@github.com>2021-10-21 21:23:59 +0200
commit63eb55622f765829e71f28518271e835ef98032b (patch)
tree06a4ba5215804c948729883a1a78a6b1658e367a /pkgs/data/fonts
parent773e0f38501dc5bd3eea1d663d9f312098c62904 (diff)
parent7c8bf4ff22f7640fa427f35124e0399cbb8eb517 (diff)
Merge pull request #136742 from zhaofengli/atkinson-hyperlegible
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r--pkgs/data/fonts/atkinson-hyperlegible/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/data/fonts/atkinson-hyperlegible/default.nix b/pkgs/data/fonts/atkinson-hyperlegible/default.nix
new file mode 100644
index 0000000000000..ef7425e12e49a
--- /dev/null
+++ b/pkgs/data/fonts/atkinson-hyperlegible/default.nix
@@ -0,0 +1,26 @@
+{ lib, fetchFromGitHub }:
+
+let
+  pname = "atkinson-hyperlegible";
+  version = "unstable-2021-04-29";
+in fetchFromGitHub {
+  name = "${pname}-${version}";
+
+  owner = "googlefonts";
+  repo = "atkinson-hyperlegible";
+  rev = "1cb311624b2ddf88e9e37873999d165a8cd28b46";
+  sha256 = "sha256-urSTqC3rfDRM8IMG+edwKEe7NPiTuDZph3heGHzLDks=";
+
+  postFetch = ''
+    tar xf $downloadedFile --strip=1
+    install -Dm644 -t $out/share/fonts/opentype fonts/otf/*
+  '';
+
+  meta = with lib; {
+    description = "Typeface designed to offer greater legibility and readability for low vision readers";
+    homepage = "https://brailleinstitute.org/freefont";
+    license = licenses.ofl;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ zhaofengli ];
+  };
+}