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