dm-mono: use installFonts (#551511)

This commit is contained in:
Weijia Wang
2026-08-11 21:26:34 +00:00
committed by GitHub

View File

@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchFromGitHub,
installFonts,
}:
stdenvNoCC.mkDerivation {
pname = "dm-mono";
@@ -14,13 +15,7 @@ stdenvNoCC.mkDerivation {
hash = "sha256-Xj6UmvH7tqW6xdobBxuafqc7TB1nrTFwHWv4DaZmwx8=";
};
installPhase = ''
runHook preInstall
install -m644 --target $out/share/fonts/truetype -D exports/*.ttf
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
description = "Monospace typeface";