nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 31 lines 795 B view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "amiri"; 5 version = "1.000"; 6 7 src = fetchzip { 8 url = "https://github.com/alif-type/amiri/releases/download/${version}/Amiri-${version}.zip"; 9 hash = "sha256-WXxKLYIIKe01WWZrI1aLOv65wRgn7aqHl6Codf4foVw="; 10 }; 11 12 installPhase = '' 13 runHook preInstall 14 15 mkdir -p $out/share/fonts/truetype 16 mv *.ttf $out/share/fonts/truetype/ 17 mkdir -p $out/share/doc/${pname}-${version} 18 mv {*.html,*.txt,*.md} $out/share/doc/${pname}-${version}/ 19 20 runHook postInstall 21 ''; 22 23 meta = with lib; { 24 description = "A classical Arabic typeface in Naskh style"; 25 homepage = "https://www.amirifont.org/"; 26 license = licenses.ofl; 27 maintainers = [ maintainers.vbgl ]; 28 platforms = platforms.all; 29 }; 30} 31