vazir-fonts: rename to vazirmatn and use installFonts hook

This commit is contained in:
nix-julia
2026-06-15 19:46:03 +03:30
parent 1af84268c3
commit f40fc1dd1c
2 changed files with 17 additions and 11 deletions
@@ -2,34 +2,39 @@
lib,
stdenvNoCC,
fetchFromGitHub,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
pname = "vazir-fonts";
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "vazirmatn";
version = "33.003";
src = fetchFromGitHub {
owner = "rastikerdar";
repo = "vazir-font";
rev = "v${version}";
repo = "vazirmatn";
tag = "v${finalAttrs.version}";
hash = "sha256-C1UtfrRFzz0uv/hj8e7huXe4sNd5h7ozVhirWEAyXGg=";
};
__structuredAttrs = true;
strictDeps = true;
dontBuild = true;
outputs = [
"out"
"webfont"
];
nativeBuildInputs = [ installFonts ];
installPhase = ''
runHook preInstall
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
runHook postInstall
'';
meta = {
homepage = "https://github.com/rastikerdar/vazir-font";
description = "Persian (Farsi) Font - قلم (فونت) فارسی وزیر";
homepage = "https://github.com/rastikerdar/vazirmatn";
description = "Persian (Farsi) Font - قلم (فونت) فارسی وزیرمتن";
license = lib.licenses.ofl;
platforms = lib.platforms.all;
maintainers = [ ];
};
}
})
+1
View File
@@ -2235,6 +2235,7 @@ mapAliases {
varnish77 = throw "varnish 7.7 is EOL. Please upgrade to 'varnish80' or 'vinyl-cache_9'."; # Added 2026-05-01
varnish77Packages = throw "varnish 7.7 is EOL. Please upgrade to 'varnish80' or 'vinyl-cache_9'."; # Added 2026-05-01
vaultwarden-vault = throw "'vaultwarden-vault' has been renamed to/replaced by 'vaultwarden.webvault'"; # Converted to throw 2025-10-27
vazir-fonts = throw "'vazir-fonts' has been renamed to 'vazirmatn'"; # Added 2026-06-15
vbetool = throw "'vbetool' has been removed as it is broken and not maintained upstream."; # Added 2025-06-11
vboot_reference = vboot-utils; # Added 2025-11-01
vc_0_7 = throw "'vc_0_7' has been removed as it was broken, unused in nixpkgs and unmaintained"; # Added 2025-10-20