@@ -0,0 +1,31 @@
1+{ stdenv, fetchzip }:
2+
3+stdenv.mkDerivation rec {
4+ name = "gentium-book-basic-${version}";
5+ major = "1";
6+ minor = "102";
7+ version = "${major}.${minor}";
8+
9+ src = fetchzip {
10+ name = "${name}.zip";
11+ url = "http://software.sil.org/downloads/gentium/GentiumBasic_${major}${minor}.zip";
12+ sha256 = "109yiqwdfb1bn7d6bjp8d50k1h3z3kz86p3faz11f9acvsbsjad0";
13+ };
14+
15+ phases = [ "unpackPhase" "installPhase" ];
16+
17+ installPhase = ''
18+ mkdir -p $out/share/fonts/truetype
19+ mkdir -p $out/share/doc/${name}
20+ cp -v *.ttf $out/share/fonts/truetype/
21+ cp -v FONTLOG.txt GENTIUM-FAQ.txt $out/share/doc/${name}
22+ '';
23+
24+ meta = with stdenv.lib; {
25+ homepage = "http://software.sil.org/gentium/";
26+ description = "A high-quality typeface family for Latin, Cyrillic, and Greek";
27+ maintainers = with maintainers; [ DamienCassou ];
28+ license = licenses.ofl;
29+ platforms = platforms.all;
30+ };
31+}