nixpkgs/pkgs/by-name/am/amiri/package.nix
2024-11-19 14:42:03 +00:00

32 lines
793 B
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "amiri";
version = "1.001";
src = fetchzip {
url = "https://github.com/alif-type/amiri/releases/download/${version}/Amiri-${version}.zip";
hash = "sha256-YwiDY5/Ty5Pwj3d8+UafUNLVZ3omRtFRWQCLn2RkheM=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
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 = "Classical Arabic typeface in Naskh style";
homepage = "https://www.amirifont.org/";
license = licenses.ofl;
maintainers = [ maintainers.vbgl ];
platforms = platforms.all;
};
}