udev-gothic-nf: use installFonts

This commit is contained in:
pancaek
2026-05-24 12:58:59 -07:00
parent f51283ed3c
commit fca183d36b
+5 -8
View File
@@ -2,22 +2,19 @@
lib,
stdenvNoCC,
fetchzip,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "udev-gothic-nf";
version = "2.2.0";
src = fetchzip {
url = "https://github.com/yuru7/udev-gothic/releases/download/v${version}/UDEVGothic_NF_v${version}.zip";
url = "https://github.com/yuru7/udev-gothic/releases/download/v${finalAttrs.version}/UDEVGothic_NF_v${finalAttrs.version}.zip";
hash = "sha256-pX62FnoHTB6LmwI1wDHvjWsko82b8jOet3MzQrn/CXI=";
};
installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/udev-gothic-nf
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
description = "Programming font that combines BIZ UD Gothic, JetBrains Mono and nerd-fonts";
@@ -26,4 +23,4 @@ stdenvNoCC.mkDerivation rec {
maintainers = with lib.maintainers; [ haruki7049 ];
platforms = lib.platforms.all;
};
}
})