2023-01-24 20:17:01 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2019-06-26 05:36:56 +00:00
|
|
|
|
2023-01-24 20:17:01 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "amiri";
|
2022-12-06 07:19:07 +00:00
|
|
|
version = "1.000";
|
2019-06-26 05:36:56 +00:00
|
|
|
|
2023-01-24 20:17:01 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/alif-type/amiri/releases/download/${version}/Amiri-${version}.zip";
|
|
|
|
hash = "sha256-WXxKLYIIKe01WWZrI1aLOv65wRgn7aqHl6Codf4foVw=";
|
|
|
|
};
|
2019-06-26 05:36:56 +00:00
|
|
|
|
2023-01-24 20:17:01 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2019-06-26 05:36:56 +00:00
|
|
|
|
2022-06-27 04:59:38 +00:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
2023-01-24 20:17:01 +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
|
2019-06-26 05:36:56 +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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|