2015-06-11 23:17:53 +01:00
|
|
|
|
{ stdenv, fetchzip }:
|
2011-05-28 20:01:59 +01:00
|
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
name = "gentium-${version}";
|
2016-08-03 07:31:56 +01:00
|
|
|
|
version = "5.000";
|
2015-06-11 23:17:53 +01:00
|
|
|
|
|
|
|
|
|
src = fetchzip {
|
2017-01-26 02:26:00 +00:00
|
|
|
|
url = "http://software.sil.org/downloads/d/gentium/GentiumPlus-${version}.zip";
|
2016-08-03 07:31:56 +01:00
|
|
|
|
sha256 = "0g9sx38wh7f0m16gr64g2xggjwak2q6jw9y4zhrvhmp4aq4xfqm6";
|
2011-05-28 20:01:59 +01:00
|
|
|
|
};
|
|
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
2011-05-28 20:01:59 +01:00
|
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
|
installPhase = ''
|
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
|
mkdir -p $out/share/doc/${name}
|
|
|
|
|
cp -v *.ttf $out/share/fonts/truetype/
|
2016-08-03 07:31:56 +01:00
|
|
|
|
cp -vr documentation/ FONTLOG.txt GENTIUM-FAQ.txt README.txt $out/share/doc/${name}
|
2015-06-11 23:17:53 +01:00
|
|
|
|
'';
|
2011-05-28 20:01:59 +01:00
|
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
|
homepage = http://software.sil.org/gentium/;
|
2015-06-11 23:17:53 +01:00
|
|
|
|
description = "A high-quality typeface family for Latin, Cyrillic, and Greek";
|
2016-08-03 07:31:56 +01:00
|
|
|
|
longDescription = ''
|
|
|
|
|
Gentium is a typeface family designed to enable the diverse ethnic groups
|
|
|
|
|
around the world who use the Latin, Cyrillic and Greek scripts to produce
|
|
|
|
|
readable, high-quality publications. It supports a wide range of Latin and
|
|
|
|
|
Cyrillic-based alphabets.
|
|
|
|
|
|
|
|
|
|
The design is intended to be highly readable, reasonably compact, and
|
|
|
|
|
visually attractive. The additional ‘extended’ Latin letters are designed
|
|
|
|
|
to naturally harmonize with the traditional 26 ones. Diacritics are
|
|
|
|
|
treated with careful thought and attention to their use. Gentium Plus also
|
|
|
|
|
supports both polytonic and monotonic Greek.
|
|
|
|
|
|
|
|
|
|
This package contains the regular and italic styles for the Gentium Plus
|
|
|
|
|
font family, along with documentation.
|
|
|
|
|
'';
|
|
|
|
|
downloadPage = "http://software.sil.org/gentium/download/";
|
2015-06-11 23:17:53 +01:00
|
|
|
|
maintainers = with maintainers; [ raskin rycee ];
|
|
|
|
|
license = licenses.ofl;
|
|
|
|
|
platforms = platforms.all;
|
2011-05-28 20:01:59 +01:00
|
|
|
|
};
|
2015-06-11 23:17:53 +01:00
|
|
|
|
}
|