2020-04-24 23:36:52 +00:00
|
|
|
|
{ lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
pname = "vazir-fonts";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
version = "30.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
in fetchFromGitHub {
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
|
|
owner = "rastikerdar";
|
|
|
|
|
repo = "vazir-font";
|
|
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
|
tar xf $downloadedFile --strip=1
|
|
|
|
|
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
|
|
|
|
|
'';
|
2022-02-20 05:27:41 +00:00
|
|
|
|
sha256 = "sha256-J1l6rBFgaXFtGnK0pH7GbaYTt5TI/OevjZrXmaEgkB4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
homepage = "https://github.com/rastikerdar/vazir-font";
|
|
|
|
|
description = "A Persian (Farsi) Font - قلم (فونت) فارسی وزیر";
|
|
|
|
|
license = licenses.ofl;
|
|
|
|
|
platforms = platforms.all;
|
|
|
|
|
maintainers = [ maintainers.linarcx ];
|
|
|
|
|
};
|
|
|
|
|
}
|