nixpkgs-suyu/pkgs/data/fonts/vazir-fonts/default.nix

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

27 lines
666 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub }:
2019-03-19 14:25:40 +01:00
let
pname = "vazir-fonts";
2022-03-15 16:31:08 +01:00
version = "32.0.0";
2019-08-13 23:52:01 +02:00
in fetchFromGitHub {
name = "${pname}-${version}";
2019-03-19 14:25:40 +01:00
owner = "rastikerdar";
repo = "vazir-font";
rev = "v${version}";
2019-03-19 14:25:40 +01:00
postFetch = ''
tar xf $downloadedFile --strip=1
2020-02-23 10:20:00 +01:00
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
2019-03-19 14:25:40 +01:00
'';
2022-03-15 16:31:08 +01:00
sha256 = "sha256-Uy8hgBtCcTLwXu9FkLN1WavUfP74Jf53ChxVGS3UBVM=";
2019-03-19 14:25:40 +01:00
meta = with lib; {
2020-02-23 10:20:00 +01:00
homepage = "https://github.com/rastikerdar/vazir-font";
2019-03-19 14:25:40 +01:00
description = "A Persian (Farsi) Font - قلم (فونت) فارسی وزیر";
license = licenses.ofl;
platforms = platforms.all;
2022-02-20 05:20:00 +01:00
maintainers = [ ];
2019-03-19 14:25:40 +01:00
};
}