depot/pkgs/by-name/lo/lora/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

40 lines
846 B
Nix

{
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 ];
};
}