gubbi-font: use installFonts (#519979)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user