gubbi-font: use installFonts

This commit is contained in:
pancaek
2026-05-15 19:03:24 -07:00
parent 90c171cce6
commit 6d66b1b0cf
+10 -3
View File
@@ -3,6 +3,7 @@
stdenv,
fetchFromGitHub,
fontforge,
installFonts,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -12,17 +13,23 @@ 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;