2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "amiri";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.000";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/alif-type/amiri/releases/download/${version}/Amiri-${version}.zip";
|
|
|
|
hash = "sha256-WXxKLYIIKe01WWZrI1aLOv65wRgn7aqHl6Codf4foVw=";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
2023-02-02 18:25:31 +00:00
|
|
|
mv *.ttf $out/share/fonts/truetype/
|
|
|
|
mkdir -p $out/share/doc/${pname}-${version}
|
|
|
|
mv {*.html,*.txt,*.md} $out/share/doc/${pname}-${version}/
|
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A classical Arabic typeface in Naskh style";
|
|
|
|
homepage = "https://www.amirifont.org/";
|
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|