lora: init at v3.005 (#350536)

This commit is contained in:
Sandro 2024-10-27 22:07:16 +01:00 committed by GitHub
commit e9f50ea2e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,40 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
nix-update-script,
}:
stdenvNoCC.mkDerivation rec {
pname = "lora";
version = "v3.005";
src = fetchFromGitHub {
owner = "cyrealtype";
repo = "lora";
rev = version;
hash = "sha256-EHa8DUPFRvdYBdCY41gfjKGtTHwGIXCwD9Qc+Npmt1s=";
};
dontConfigure = true;
dontBuild = true;
passthru.updateScript = nix-update-script { };
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
cp -R $src/fonts/ttf/*.ttf $out/share/fonts/truetype
runHook postInstall
'';
meta = with lib; {
description = "Lora is a well-balanced contemporary serif with roots in calligraphy";
homepage = "https://github.com/cyrealtype/lora";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ ofalvai ];
};
}