libertinus: use installFonts

This commit is contained in:
Sigmanificient
2026-05-01 23:57:32 +02:00
parent d1412c1cab
commit fee5f4012e

View File

@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchurl,
installFonts,
zstd,
}:
@@ -14,15 +15,15 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-JQZ3ySnTd1owkTZDWUN5ryZKwu8oAQNaody+MLm+I6Y=";
};
nativeBuildInputs = [ zstd ];
outputs = [
"out"
"webfont"
];
installPhase = ''
runHook preInstall
install -m644 -Dt $out/share/fonts/opentype static/OTF/*.otf
runHook postInstall
'';
nativeBuildInputs = [
installFonts
zstd
];
meta = {
description = "Libertinus font family";