From c85ea92466f0c27740da7e2033091001bf09ffbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Tue, 22 Oct 2024 21:23:22 +0200 Subject: [PATCH] lora: init at v3.005 --- pkgs/by-name/lo/lora/package.nix | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/lo/lora/package.nix diff --git a/pkgs/by-name/lo/lora/package.nix b/pkgs/by-name/lo/lora/package.nix new file mode 100644 index 0000000000000..62bbd83ba4c77 --- /dev/null +++ b/pkgs/by-name/lo/lora/package.nix @@ -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 ]; + }; +}