Unverified Commit 4d3329f8 authored by Ramses's avatar Ramses Committed by GitHub
Browse files

literata: use install Fonts (#513581)

parents 015c3f16 2fcfd2b0
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchzip,
  installFonts,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "literata";
@@ -13,14 +14,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    stripRoot = false;
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/fonts/truetype
    find . -name "*.ttf" -exec cp {} "$out/share/fonts/truetype/" \;

    runHook postInstall
  '';
  nativeBuildInputs = [ installFonts ];

  meta = {
    description = "Serif typeface designed for ebooks and optimized for reading";