2016-03-02 18:45:45 +01:00
|
|
|
{ stdenv, fetchzip }:
|
|
|
|
|
2017-08-11 15:35:52 +02:00
|
|
|
let
|
2016-03-02 18:45:45 +01:00
|
|
|
major = "1";
|
|
|
|
minor = "102";
|
|
|
|
version = "${major}.${minor}";
|
2017-08-11 15:35:52 +02:00
|
|
|
in fetchzip rec {
|
|
|
|
name = "gentium-book-basic-${version}";
|
2016-03-02 18:45:45 +01:00
|
|
|
|
2017-08-11 15:35:52 +02:00
|
|
|
url = "http://software.sil.org/downloads/r/gentium/GentiumBasic_${major}${minor}.zip";
|
2016-03-02 18:45:45 +01:00
|
|
|
|
2017-08-11 15:35:52 +02:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/{doc,fonts}
|
|
|
|
unzip -l $downloadedFile
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
|
|
|
unzip -j $downloadedFile \*/FONTLOG.txt \*/GENTIUM-FAQ.txt -d $out/share/doc/${name}
|
2016-03-02 18:45:45 +01:00
|
|
|
'';
|
|
|
|
|
2017-08-11 15:35:52 +02:00
|
|
|
sha256 = "0598zr5f7d6ll48pbfbmmkrybhhdks9b2g3m2g67wm40070ffzmd";
|
|
|
|
|
2016-03-02 18:45:45 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://software.sil.org/gentium/;
|
2016-03-02 18:45:45 +01:00
|
|
|
description = "A high-quality typeface family for Latin, Cyrillic, and Greek";
|
2017-01-31 11:00:14 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-03-02 18:45:45 +01:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|