gubbi-font: use installFonts (#519979)

This commit is contained in:
Yohann Boniface
2026-05-18 21:58:44 +00:00
committed by GitHub
+11 -3
View File
@@ -3,6 +3,7 @@
stdenv,
fetchFromGitHub,
fontforge,
installFonts,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -12,21 +13,28 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "aravindavk";
repo = "gubbi";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
sha256 = "10w9i3pmjvs1b3xclrgn4q5a95ss4ipldbxbqrys2dmfivx7i994";
};
nativeBuildInputs = [ fontforge ];
nativeBuildInputs = [
fontforge
installFonts
];
dontConfigure = true;
preBuild = "patchShebangs generate.pe";
installPhase = "install -Dm444 -t $out/share/fonts/truetype/ Gubbi.ttf";
installPhase = ''
runHook preInstall
runHook postInstall
'';
meta = {
inherit (finalAttrs.src.meta) homepage;
description = "Kannada font";
maintainers = with lib.maintainers; [ pancaek ];
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.all;
};