depot/third_party/nixpkgs/pkgs/data/fonts/sil-abyssinica/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

29 lines
813 B
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "sil-abyssinica";
version = "2.200";
src = fetchzip {
url = "https://software.sil.org/downloads/r/abyssinica/AbyssinicaSIL-${version}.zip";
hash = "sha256-IdWMZHm9VoLVDO0//ISujxlXUxe0O6+aEcdP63YRmPg=";
};
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;
};
}