literata: Init at 3.103 (#434831)
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user