Commit 2da52875 authored by Sigmanificient's avatar Sigmanificient
Browse files

libre-baskerville: use installFonts

parent 0b78ec79
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  installFonts,
}:

stdenvNoCC.mkDerivation rec {
@@ -15,13 +16,10 @@ stdenvNoCC.mkDerivation rec {
    hash = "sha256-1EXi1hxFpc7pFsLbEj1xs9LqjeIf3XBol/8HdKNROUU=";
  };

  installPhase = ''
    runHook preInstall
  nativeBuildInputs = [ installFonts ];

    install -m444 -Dt $out/share/fonts/truetype *.ttf
  postInstall = ''
    install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt

    runHook postInstall
  '';

  meta = {