3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/amiri/default.nix
2022-07-04 13:04:46 +02:00

30 lines
706 B
Nix

{ lib, fetchzip }:
let
version = "0.117";
in fetchzip rec {
name = "Amiri-${version}";
url = "https://github.com/alif-type/amiri/releases/download/${version}/${name}.zip";
sha256 = "sha256-TCdL4Am+mT7E9fHEagcR7i9kBziyJuO3r1kM+ekfvbU=";
postFetch = ''
rm -rf $out/otf
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}/
'';
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;
};
}