diff options
author | Robert Helgesson <robert@rycee.net> | 2023-11-25 09:36:25 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2023-11-25 10:02:28 +0100 |
commit | 5719ed68537d46a8bf0c13b3a2204c0c169fb6be (patch) | |
tree | 64aa10cc65f4cb0761bd5fc48b6152fe69b3d16a /pkgs | |
parent | 1e92e4ce61090c68bfdb3a54ced00535e664e70d (diff) |
open-dyslexic: 2016-07-23 -> 0.91.12
Also update license, see https://github.com/antijingoist/opendyslexic/commit/e7ac50af1aabb8cb0fbf81db105f21f81fbb5284
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/data/fonts/open-dyslexic/default.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/data/fonts/open-dyslexic/default.nix b/pkgs/data/fonts/open-dyslexic/default.nix index 8a6b01b1d6d79..bcfc9fda2b2d8 100644 --- a/pkgs/data/fonts/open-dyslexic/default.nix +++ b/pkgs/data/fonts/open-dyslexic/default.nix @@ -1,19 +1,21 @@ -{ lib, stdenvNoCC, fetchzip }: +{ lib, stdenvNoCC, fetchFromGitHub }: +let version = "0.91.12"; in stdenvNoCC.mkDerivation { pname = "open-dyslexic"; - version = "2016-06-23"; + inherit version; - src = fetchzip { - url = "https://github.com/antijingoist/open-dyslexic/archive/20160623-Stable.zip"; - hash = "sha256-f/uavR3n0qHyqumZDw7r8Zy0om2RlJAKyWuGaUXSJ1s="; + src = fetchFromGitHub { + owner = "antijingoist"; + repo = "opendyslexic"; + rev = "v${version}"; + hash = "sha256-a8hh8NGt5djj9EC7ChO3SnnjuYMOryzbHWTK4gC/vIw="; }; installPhase = '' runHook preInstall - install -Dm644 otf/*.otf -t $out/share/fonts/opentype - install -Dm644 README.md -t $out/share/doc/open-dyslexic + install -Dm644 compiled/*.otf -t $out/share/fonts/opentype runHook postInstall ''; @@ -21,7 +23,7 @@ stdenvNoCC.mkDerivation { meta = with lib; { homepage = "https://opendyslexic.org/"; description = "Font created to increase readability for readers with dyslexia"; - license = "Bitstream Vera License (https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts)"; + license = licenses.ofl; platforms = platforms.all; maintainers = [ maintainers.rycee ]; }; |