vazir-code-font: use installFonts (#532554)

This commit is contained in:
Yohann Boniface
2026-06-17 07:35:41 +00:00
committed by GitHub
+9 -11
View File
@@ -2,26 +2,24 @@
lib,
stdenvNoCC,
fetchFromGitHub,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "vazir-code-font";
version = "1.1.2";
src = fetchFromGitHub {
owner = "rastikerdar";
repo = "vazir-code-font";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-iBojse3eHr4ucZtPfpkN+mmO6sEExY8WcAallyPgMsI=";
};
installPhase = ''
runHook preInstall
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
runHook postInstall
'';
outputs = [
"out"
"webfont"
];
nativeBuildInputs = [ installFonts ];
meta = {
homepage = "https://github.com/rastikerdar/vazir-code-font";
@@ -30,4 +28,4 @@ stdenvNoCC.mkDerivation rec {
platforms = lib.platforms.all;
maintainers = [ lib.maintainers.dearrude ];
};
}
})