about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/galatia-sil/default.nix
blob: 99ae580200534e29c9dc01bf6d46a9fcbf382123 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, fetchzip }:

let
  version = "2.1";
in
  fetchzip rec {
    name = "galatia-sil-${version}";

    url = "https://software.sil.org/downloads/r/galatia/GalatiaSIL-${version}.zip";

    postFetch = ''
      mkdir -p $out/share/{doc,fonts}
      unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
      unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*FONTLOG.txt -d "$out/share/doc/${name}"
    '';

    sha256 = "sha256-zLL/7LMcJul2LilhEafpvm+tiYlgv1y1jj85VvG+wiI=";

    meta = with lib; {
      homepage = "https://software.sil.org/galatia";
      description = "Font designed to support Biblical Polytonic Greek";
      longDescription = ''
        Galatia SIL, designed to support Biblical Polytonic Greek, is a Unicode 3.1 font released under the SIL Open Font License. The font supports precomposed characters rather than decomposed characters. Thus, you must use a keyboard that outputs NFC encoding (precomposed).
      '';
      license = licenses.ofl;
      platforms = platforms.all;
      maintainers = [ maintainers.kmein ];
    };
  }