2020-04-24 23:36:52 +00:00
|
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
|
|
let
|
2022-03-05 16:20:37 +00:00
|
|
|
|
version = "6.101";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
in fetchzip rec {
|
|
|
|
|
name = "gentium-${version}";
|
|
|
|
|
|
|
|
|
|
url = "http://software.sil.org/downloads/r/gentium/GentiumPlus-${version}.zip";
|
|
|
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
|
mkdir -p $out/share/{doc,fonts}
|
|
|
|
|
unzip -l $downloadedFile
|
2021-07-03 03:11:41 +00:00
|
|
|
|
unzip -j $downloadedFile \*.ttf \
|
|
|
|
|
-d $out/share/fonts/truetype
|
|
|
|
|
unzip -j $downloadedFile \
|
|
|
|
|
\*/FONTLOG.txt \
|
|
|
|
|
\*/README.txt \
|
|
|
|
|
-d $out/share/doc/${name}
|
|
|
|
|
unzip -j $downloadedFile \
|
|
|
|
|
\*/documentation/\*.html \
|
|
|
|
|
\*/documentation/\*.txt \
|
|
|
|
|
-x \*/documentation/source/\* \
|
|
|
|
|
-d $out/share/doc/${name}/documentation
|
2020-04-24 23:36:52 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
|
sha256 = "sha256-+T5aUlqQYDWRp4/4AZzsREHgjAnOeUB6qn1GAI0A5hE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
homepage = "https://software.sil.org/gentium/";
|
|
|
|
|
description = "A high-quality typeface family for Latin, Cyrillic, and Greek";
|
|
|
|
|
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 = "https://software.sil.org/gentium/download/";
|
|
|
|
|
maintainers = with maintainers; [ raskin rycee ];
|
|
|
|
|
license = licenses.ofl;
|
|
|
|
|
platforms = platforms.all;
|
|
|
|
|
};
|
|
|
|
|
}
|