mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 16:15:30 +00:00
85109b92cd
Amiri is a classical Arabic typeface in Naskh style for typesetting books and other running text. Homepage: https://www.amirifont.org/
28 lines
669 B
Nix
28 lines
669 B
Nix
{ lib, fetchzip }:
|
|
|
|
let
|
|
version = "0.111";
|
|
|
|
in fetchzip rec {
|
|
name = "Amiri-${version}";
|
|
|
|
url = "https://github.com/alif-type/amiri/releases/download/${version}/${name}.zip";
|
|
|
|
sha256 = "1w3a5na4mazspwy8j2hvpjha10sgd287kamm51p49jcr90cvwbdr";
|
|
|
|
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;
|
|
};
|
|
}
|
|
|