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

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

30 lines
764 B
Nix
Raw Normal View History

2023-01-25 11:34:24 +00:00
{ lib, stdenvNoCC, fetchzip }:
2022-10-26 19:16:05 +00:00
2023-01-25 11:34:24 +00:00
stdenvNoCC.mkDerivation rec {
2022-10-26 19:16:05 +00:00
pname = "ruwudu";
2023-07-27 17:50:55 +00:00
version = "3.000";
2022-10-26 19:16:05 +00:00
2023-01-25 11:34:24 +00:00
src = fetchzip {
url = "https://software.sil.org/downloads/r/ruwudu/Ruwudu-${version}.zip";
2023-07-27 17:50:55 +00:00
hash = "sha256-HuuH6AWD5gym73zSsuQdQD901J6r3PkUmUTtnRxYRyg=";
2023-01-25 11:34:24 +00:00
};
installPhase = ''
runHook preInstall
2022-10-26 19:16:05 +00:00
mkdir -p $out/share/{doc/${pname},fonts/truetype}
2023-01-25 11:34:24 +00:00
mv *.ttf $out/share/fonts/truetype/
mv *.txt documentation $out/share/doc/${pname}/
2022-10-26 19:16:05 +00:00
2023-01-25 11:34:24 +00:00
runHook postInstall
'';
2022-10-26 19:16:05 +00:00
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;
};
}