summary refs log tree commit diff
path: root/pkgs/data/fonts/sil-abyssinica/default.nix
blob: d0571fae0bfdaf1f7eecea0781f16660f0c6f449 (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, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation rec {
  pname = "sil-abyssinica";
  version = "2.201";

  src = fetchzip {
    url = "https://software.sil.org/downloads/r/abyssinica/AbyssinicaSIL-${version}.zip";
    hash = "sha256-DJWp3T9uBLnztSq9r5YCSWaBjIK/0Aljg1IiU0FLrdE=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/{fonts/truetype,doc/${pname}-${version}}
    mv *.ttf $out/share/fonts/truetype/
    mv *.txt documentation $out/share/doc/${pname}-${version}/

    runHook postInstall
  '';

  meta = with lib; {
    description = "Unicode font for Ethiopian and Erythrean scripts (Amharic et al.)";
    homepage = "https://software.sil.org/abyssinica/";
    license = licenses.ofl;
    maintainers = with maintainers; [ serge ];
    platforms = platforms.all;
  };
}