···11+{
22+ lib,
33+ stdenvNoCC,
44+ fetchzip,
55+}:
66+77+stdenvNoCC.mkDerivation (finalAttrs: {
88+ pname = "gentium-book";
99+ version = "7.000";
1010+1111+ src = fetchzip {
1212+ url = "http://software.sil.org/downloads/r/gentium/GentiumBook-${finalAttrs.version}.zip";
1313+ hash = "sha256-A/QZX8OYrifaxChC08SNOaspdnSr8PxOtYgFAwUc5WY=";
1414+ };
1515+1616+ installPhase = ''
1717+ runHook preInstall
1818+1919+ install -Dm644 *.ttf -t $out/share/fonts/truetype
2020+ install -Dm644 FONTLOG.txt README.txt -t $out/share/doc/${finalAttrs.pname}-${finalAttrs.version}
2121+ cp -r documentation $out/share/doc/${finalAttrs.pname}-${finalAttrs.version}
2222+2323+ runHook postInstall
2424+ '';
2525+2626+ meta = {
2727+ homepage = "https://software.sil.org/gentium/";
2828+ description = "High-quality typeface family for Latin, Cyrillic, and Greek";
2929+ longDescription = ''
3030+ Gentium is a typeface family designed to enable the diverse ethnic groups
3131+ around the world who use the Latin, Cyrillic and Greek scripts to produce
3232+ readable, high-quality publications. It supports a wide range of Latin and
3333+ Cyrillic-based alphabets.
3434+3535+ The design is intended to be highly readable, reasonably compact, and
3636+ visually attractive. The additional ‘extended’ Latin letters are designed
3737+ to naturally harmonize with the traditional 26 ones. Diacritics are
3838+ treated with careful thought and attention to their use. Gentium also
3939+ supports both polytonic and monotonic Greek.
4040+4141+ This package contains the regular and italic styles for the Gentium Book
4242+ font family, along with documentation.
4343+ '';
4444+ downloadPage = "https://software.sil.org/gentium/download/";
4545+ maintainers = with lib.maintainers; [
4646+ b-fein
4747+ raskin
4848+ rycee
4949+ ];
5050+ license = lib.licenses.ofl;
5151+ platforms = lib.platforms.all;
5252+ };
5353+})