1{ stdenv, fetchzip }:
2
3let
4 major = "1";
5 minor = "102";
6 version = "${major}.${minor}";
7in fetchzip rec {
8 name = "gentium-book-basic-${version}";
9
10 url = "http://software.sil.org/downloads/r/gentium/GentiumBasic_${major}${minor}.zip";
11
12 postFetch = ''
13 mkdir -p $out/share/{doc,fonts}
14 unzip -l $downloadedFile
15 unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
16 unzip -j $downloadedFile \*/FONTLOG.txt \*/GENTIUM-FAQ.txt -d $out/share/doc/${name}
17 '';
18
19 sha256 = "0598zr5f7d6ll48pbfbmmkrybhhdks9b2g3m2g67wm40070ffzmd";
20
21 meta = with stdenv.lib; {
22 homepage = http://software.sil.org/gentium/;
23 description = "A high-quality typeface family for Latin, Cyrillic, and Greek";
24 maintainers = with maintainers; [ ];
25 license = licenses.ofl;
26 platforms = platforms.all;
27 };
28}