sahel-fonts: use installFonts (#523190)

This commit is contained in:
Yohann Boniface
2026-05-22 23:36:58 +00:00
committed by GitHub
+11 -11
View File
@@ -2,32 +2,32 @@
lib,
stdenvNoCC,
fetchFromGitHub,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "sahel-fonts";
version = "3.4.0";
outputs = [
"out"
"webfont"
];
src = fetchFromGitHub {
owner = "rastikerdar";
repo = "sahel-font";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-U4tIICXZFK9pk7zdzRwBPIPYFUlYXPSebnItUJUgGJY=";
};
installPhase = ''
runHook preInstall
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/sahel-fonts {} \;
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
homepage = "https://github.com/rastikerdar/sahel-font";
description = "Persian (farsi) Font - فونت (قلم) فارسی ساحل";
license = lib.licenses.ofl;
platforms = lib.platforms.all;
maintainers = [ ];
maintainers = with lib.maintainers; [ pancaek ];
};
}
})