nixpkgs/pkgs/data/fonts/alkalami/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
784 B
Nix
Raw Normal View History

2023-01-24 20:17:01 +00:00
{ lib, stdenvNoCC, fetchzip }:
2022-05-12 19:36:44 +00:00
2023-01-24 20:17:01 +00:00
stdenvNoCC.mkDerivation rec {
2022-05-12 19:36:44 +00:00
pname = "alkalami";
2023-05-17 19:59:52 +00:00
version = "3.000";
2022-05-12 19:36:44 +00:00
2023-01-24 20:17:01 +00:00
src = fetchzip {
url = "https://software.sil.org/downloads/r/alkalami/Alkalami-${version}.zip";
2023-05-17 19:59:52 +00:00
hash = "sha256-ra664VbUKc8XpULCWhLMVnc1mW4pqZvbvwuBvRQRhcY=";
2023-01-24 20:17:01 +00:00
};
installPhase = ''
runHook preInstall
2022-05-12 19:36:44 +00:00
mkdir -p $out/share/{doc/${pname},fonts/truetype}
2023-01-24 20:17:01 +00:00
mv *.ttf $out/share/fonts/truetype/
mv *.txt documentation $out/share/doc/${pname}/
2022-05-12 19:36:44 +00:00
2023-01-24 20:17:01 +00:00
runHook postInstall
'';
2022-05-12 19:36:44 +00:00
meta = with lib; {
homepage = "https://software.sil.org/alkalami/";
description = "Font for Arabic-based writing systems in the Kano region of Nigeria and in Niger";
license = licenses.ofl;
maintainers = [ maintainers.vbgl ];
platforms = platforms.all;
};
}