2017-08-10 20:43:49 +01:00
|
|
|
{stdenv, fetchzip}:
|
2015-01-16 23:46:38 +00:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
let
|
2015-01-16 23:46:38 +00:00
|
|
|
version = "2014-11-11";
|
2017-08-10 20:43:49 +01:00
|
|
|
in fetchzip {
|
|
|
|
name = "open-dyslexic-${version}";
|
2015-01-16 23:46:38 +00:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
url = https://github.com/antijingoist/open-dyslexic/archive/f4b5ba89018b44d633608907e15f93fb3fabbabc.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
|
|
|
'';
|
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
sha256 = "045xc7kj56q4ygnjppm8f8fwqqvf21x1piabm4nh8hwgly42a3w2";
|
|
|
|
|
2015-01-16 23:46:38 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://opendyslexic.org/;
|
|
|
|
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];
|
|
|
|
};
|
|
|
|
}
|