2019-06-26 06:36:56 +01:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
2020-06-16 00:33:05 +01:00
|
|
|
version = "0.113";
|
2019-06-26 06:36:56 +01:00
|
|
|
|
|
|
|
in fetchzip rec {
|
|
|
|
name = "Amiri-${version}";
|
|
|
|
|
|
|
|
url = "https://github.com/alif-type/amiri/releases/download/${version}/${name}.zip";
|
|
|
|
|
2020-06-16 00:33:05 +01:00
|
|
|
sha256 = "0v5xm4spyww8wy6j9kpb01ixrakw7wp6jng4xnh220iy6yqcxm7v";
|
2019-06-26 06:36:56 +01:00
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
unzip $downloadedFile
|
|
|
|
install -m444 -Dt $out/share/fonts/truetype ${name}/*.ttf
|
|
|
|
install -m444 -Dt $out/share/doc/${name} ${name}/{*.txt,*.pdf}
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|