2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.000";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
in fetchzip rec {
|
|
|
|
name = "Amiri-${version}";
|
|
|
|
|
|
|
|
url = "https://github.com/alif-type/amiri/releases/download/${version}/${name}.zip";
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "sha256-hG6m/zsGoGF5/xhHz9EHVL9Sg9dlQqfXpQ/lqNyI1vU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
2022-07-14 12:49:19 +00:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
mv $out/*.ttf $out/share/fonts/truetype/
|
|
|
|
mkdir -p $out/share/doc/${name}
|
|
|
|
mv $out/{*.html,*.txt,*.md} $out/share/doc/${name}/
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|