Unverified Commit 7daad073 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

literata: Init at 3.103 (#434831)

parents 135013a6 c48bf3ff
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchzip,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "literata";
  version = "3.103";

  src = fetchzip {
    url = "https://github.com/googlefonts/literata/releases/download/${finalAttrs.version}/${finalAttrs.version}.zip";
    hash = "sha256-XwwvyzwO2uhi1Bay9HtB75j1QfAJR4TMETgy/zyvwZ0=";
    stripRoot = false;
  };

  installPhase = ''
    runHook preInstall

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

    runHook postInstall
  '';

  meta = {
    description = "Serif typeface designed for ebooks and optimized for reading";
    homepage = "https://github.com/googlefonts/literata";
    license = lib.licenses.ofl;
    maintainers = with lib.maintainers; [ xavwe ];
    platforms = lib.platforms.all;
  };
})