libre-baskerville: use installFonts (#513584)

This commit is contained in:
Yohann Boniface
2026-05-04 21:53:01 +00:00
committed by GitHub
@@ -2,9 +2,10 @@
lib,
stdenvNoCC,
fetchFromGitHub,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "libre-baskerville";
version = "1.000";
@@ -15,13 +16,10 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-1EXi1hxFpc7pFsLbEj1xs9LqjeIf3XBol/8HdKNROUU=";
};
installPhase = ''
runHook preInstall
nativeBuildInputs = [ installFonts ];
install -m444 -Dt $out/share/fonts/truetype *.ttf
install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt
runHook postInstall
postInstall = ''
install -m444 -Dt $out/share/doc/${finalAttrs.pname}-${finalAttrs.version} README.md FONTLOG.txt
'';
meta = {
@@ -34,7 +32,7 @@ stdenvNoCC.mkDerivation rec {
'';
homepage = "http://www.impallari.com/projects/overview/libre-baskerville";
license = lib.licenses.ofl;
maintainers = [ ];
maintainers = with lib.maintainers; [ pancaek ];
platforms = lib.platforms.all;
};
}
})