udev-gothic: use installFonts

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