nixpkgs/pkgs/data/fonts/amiri/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
795 B
Nix
Raw Normal View History

2023-01-24 20:17:01 +00:00
{ lib, stdenvNoCC, fetchzip }:
2023-01-24 20:17:01 +00:00
stdenvNoCC.mkDerivation rec {
pname = "amiri";
2022-12-06 07:19:07 +00:00
version = "1.000";
2023-01-24 20:17:01 +00:00
src = fetchzip {
url = "https://github.com/alif-type/amiri/releases/download/${version}/Amiri-${version}.zip";
hash = "sha256-WXxKLYIIKe01WWZrI1aLOv65wRgn7aqHl6Codf4foVw=";
};
2023-01-24 20:17:01 +00:00
installPhase = ''
runHook preInstall
2022-06-27 04:59:38 +00:00
mkdir -p $out/share/fonts/truetype
2023-01-24 20:17:01 +00:00
mv *.ttf $out/share/fonts/truetype/
mkdir -p $out/share/doc/${pname}-${version}
mv {*.html,*.txt,*.md} $out/share/doc/${pname}-${version}/
runHook postInstall
'';
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;
};
}