nixpkgs/pkgs/data/fonts/ruwudu/default.nix
2023-01-25 12:34:24 +01:00

30 lines
764 B
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "ruwudu";
version = "2.000";
src = fetchzip {
url = "https://software.sil.org/downloads/r/ruwudu/Ruwudu-${version}.zip";
hash = "sha256-FP+ZHm1fKlozAAI2PbJ4r4v5OwRxBtYMRLmRwPbqx2I=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/{doc/${pname},fonts/truetype}
mv *.ttf $out/share/fonts/truetype/
mv *.txt documentation $out/share/doc/${pname}/
runHook postInstall
'';
meta = with lib; {
homepage = "https://software.sil.org/ruwudu/";
description = "Arabic script font for a style of writing used in Niger, West Africa";
license = licenses.ofl;
maintainers = [ maintainers.vbgl ];
platforms = platforms.all;
};
}