2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchzip }:
|
2015-01-16 23:46:38 +00:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
let
|
2018-11-02 22:29:29 +00:00
|
|
|
version = "2016-06-23";
|
2017-08-10 20:43:49 +01:00
|
|
|
in fetchzip {
|
|
|
|
name = "open-dyslexic-${version}";
|
2015-01-16 23:46:38 +00:00
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/antijingoist/open-dyslexic/archive/20160623-Stable.zip";
|
2015-01-16 23:46:38 +00:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/{doc,fonts}
|
|
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
|
|
|
unzip -j $downloadedFile \*/README.md -d $out/share/doc/open-dyslexic
|
2015-01-16 23:46:38 +00:00
|
|
|
'';
|
|
|
|
|
2018-11-02 22:29:29 +00:00
|
|
|
sha256 = "1vl8z5rknh2hpr2f0v4b2qgs5kclx5pzyk8al7243k5db82a2cyi";
|
2017-08-10 20:43:49 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://opendyslexic.org/";
|
2015-01-16 23:46:38 +00:00
|
|
|
description = "Font created to increase readability for readers with dyslexia";
|
2017-08-02 22:50:51 +01:00
|
|
|
license = "Bitstream Vera License (https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts)";
|
2015-01-16 23:46:38 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [maintainers.rycee];
|
|
|
|
};
|
|
|
|
}
|