···11+{ stdenv, fetchzip }:
22+33+let
44+ version = "2.100";
55+in fetchzip rec {
66+ name = "scheherazade-${version}";
77+88+ url = "http://software.sil.org/downloads/r/scheherazade/Scheherazade-${version}.zip";
99+1010+ postFetch = ''
1111+ mkdir -p $out/share/{doc,fonts}
1212+ unzip -l $downloadedFile
1313+ unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
1414+ unzip -j $downloadedFile \*/FONTLOG.txt \*/README.txt -d $out/share/doc/${name}
1515+ unzip -j $downloadedFile \*/documentation/\* -d $out/share/doc/${name}/documentation
1616+ '';
1717+1818+ sha256 = "1g5f5f9gzamkq3kqyf7vbzvl4rdj3wmjf6chdrbxksrm3rnb926z";
1919+2020+ meta = with stdenv.lib; {
2121+ homepage = https://software.sil.org/scheherazade/;
2222+ description = "A font designed in a similar style to traditional Naskh typefaces";
2323+ longDescription = ''
2424+ Scheherazade, named after the heroine of the classic Arabian Nights tale,
2525+ is designed in a similar style to traditional typefaces such as Monotype
2626+ Naskh, extended to cover the Unicode Arabic repertoire through Unicode
2727+ 8.0.
2828+2929+ Scheherazade provides a “simplified” rendering of Arabic script, using
3030+ basic connecting glyphs but not including a wide variety of additional
3131+ ligatures or contextual alternates (only the required lam-alef
3232+ ligatures). This simplified style is often preferred for clarity,
3333+ especially in non-Arabic languages, but may not be considered appropriate
3434+ in situations where a more elaborate style of calligraphy is preferred.
3535+3636+ This package contains the regular and bold styles for the Scheherazade
3737+ font family, along with documentation.
3838+ '';
3939+ downloadPage = "https://software.sil.org/scheherazade/download/";
4040+ license = licenses.ofl;
4141+ platforms = platforms.all;
4242+ };
4343+}