knewave: use installFonts (#523796)

This commit is contained in:
Rémi NICOLE
2026-05-26 09:41:44 +00:00
committed by GitHub

View File

@@ -2,12 +2,18 @@
lib,
fetchFromGitHub,
stdenvNoCC,
installFonts,
}:
stdenvNoCC.mkDerivation {
pname = "knewave";
version = "2012-07-30";
outputs = [
"out"
"webfont"
];
src = fetchFromGitHub {
owner = "theleagueof";
repo = "knewave";
@@ -15,14 +21,7 @@ stdenvNoCC.mkDerivation {
hash = "sha256-SaJU2GlxU7V3iJNQzFKg1YugaPsiJuSZpC8NCqtWyz0=";
};
installPhase = ''
runHook preInstall
install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
description = "Bold, painted face for the rocker within";