-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
lib, | ||
stdenvNoCC, | ||
fetchFromGitHub, | ||
nix-update-script, | ||
}: | ||
|
||
stdenvNoCC.mkDerivation rec { | ||
pname = "lora"; | ||
version = "v3.005"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "cyrealtype"; | ||
rev = version; | ||
repo = "lora"; | ||
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 ]; | ||
}; | ||
} |