2023-01-30 09:25:57 +00:00
|
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2019-03-19 13:25:40 +00:00
|
|
|
|
|
2023-01-30 09:25:57 +00:00
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
2019-05-13 01:55:32 +00:00
|
|
|
|
pname = "vazir-fonts";
|
2023-02-05 00:49:53 +00:00
|
|
|
|
version = "33.003";
|
2019-03-19 13:25:40 +00:00
|
|
|
|
|
2023-01-30 09:25:57 +00:00
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "rastikerdar";
|
|
|
|
|
repo = "vazir-font";
|
|
|
|
|
rev = "v${version}";
|
2023-02-05 00:49:53 +00:00
|
|
|
|
hash = "sha256-C1UtfrRFzz0uv/hj8e7huXe4sNd5h7ozVhirWEAyXGg=";
|
2023-01-30 09:25:57 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
runHook preInstall
|
2019-03-19 13:25:40 +00:00
|
|
|
|
|
2020-02-23 09:20:00 +00:00
|
|
|
|
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
|
2023-01-30 09:25:57 +00:00
|
|
|
|
|
|
|
|
|
runHook postInstall
|
2019-03-19 13:25:40 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
|
meta = with lib; {
|
2020-02-23 09:20:00 +00:00
|
|
|
|
homepage = "https://github.com/rastikerdar/vazir-font";
|
2019-03-19 13:25:40 +00:00
|
|
|
|
description = "A Persian (Farsi) Font - قلم (فونت) فارسی وزیر";
|
|
|
|
|
license = licenses.ofl;
|
|
|
|
|
platforms = platforms.all;
|
2022-02-20 04:20:00 +00:00
|
|
|
|
maintainers = [ ];
|
2019-03-19 13:25:40 +00:00
|
|
|
|
};
|
|
|
|
|
}
|