8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
27 lines
669 B
Nix
27 lines
669 B
Nix
{ lib, fetchzip }:
|
|
|
|
let
|
|
version = "0.112";
|
|
|
|
in fetchzip rec {
|
|
name = "Amiri-${version}";
|
|
|
|
url = "https://github.com/alif-type/amiri/releases/download/${version}/${name}.zip";
|
|
|
|
sha256 = "13j8kglgca296czxjz1xvrbz6yx05s2xassiliyszndbkrhn6bkl";
|
|
|
|
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;
|
|
};
|
|
}
|
|
|