2023-02-02 18:25:31 +00:00
|
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
|
pname = "gentium";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
version = "6.101";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
src = fetchzip {
|
|
|
|
|
url = "http://software.sil.org/downloads/r/gentium/GentiumPlus-${version}.zip";
|
|
|
|
|
hash = "sha256-iKD1Q7/lsbZCuJQoJqySQHwplrHv8yzmph+QwKpYgMU=";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
install -Dm644 *.ttf -t $out/share/fonts/truetype
|
|
|
|
|
install -Dm644 FONTLOG.txt README.txt -t $out/share/doc/${pname}-${version}
|
|
|
|
|
cp -r documentation $out/share/doc/${pname}-${version}
|
|
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
|
'';
|
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;
|
|
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
|
}
|