2016-03-02 17:45:45 +00:00
|
|
|
{ stdenv, fetchzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gentium-book-basic-${version}";
|
|
|
|
major = "1";
|
|
|
|
minor = "102";
|
|
|
|
version = "${major}.${minor}";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
name = "${name}.zip";
|
|
|
|
url = "http://software.sil.org/downloads/gentium/GentiumBasic_${major}${minor}.zip";
|
|
|
|
sha256 = "109yiqwdfb1bn7d6bjp8d50k1h3z3kz86p3faz11f9acvsbsjad0";
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
mkdir -p $out/share/doc/${name}
|
|
|
|
cp -v *.ttf $out/share/fonts/truetype/
|
|
|
|
cp -v FONTLOG.txt GENTIUM-FAQ.txt $out/share/doc/${name}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://software.sil.org/gentium/;
|
2016-03-02 17:45:45 +00:00
|
|
|
description = "A high-quality typeface family for Latin, Cyrillic, and Greek";
|
2017-01-31 10:00:14 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-03-02 17:45:45 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|