Unverified Commit e75e4ec1 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

libre-baskerville: use installFonts (#513584)

parents d87dbb3d 412b84a8
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -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;
  };
}
})