nixpkgs/pkgs/by-name/ho/hottext/package.nix
Benedikt Fein c93299fd44 gentium-plus: rename from gentium
Upstream has named this font 'GentiumPlus' all the time, and stopped
releasing new versions of this font, but began to release a font named
simply 'Gentium' straight at version 7.000.
2025-06-07 22:03:21 +03:00

43 lines
965 B
Nix

{
lib,
buildNimPackage,
fetchFromSourcehut,
gentium-plus,
makeDesktopItem,
}:
buildNimPackage (finalAttrs: {
pname = "hottext";
version = "20231003";
src = fetchFromSourcehut {
owner = "~ehmry";
repo = "hottext";
rev = finalAttrs.version;
hash = "sha256-ncH/1PV4vZY7JCUJ87FPz5bdrQsNlYxzGdc5BQNfQeA=";
};
lockFile = ./lock.json;
HOTTEXT_FONT_PATH = "${gentium-plus}/share/fonts/truetype/GentiumPlus-Regular.ttf";
desktopItem = makeDesktopItem {
categories = [ "Utility" ];
comment = finalAttrs.meta.description;
desktopName = "hottext";
exec = "hottext";
name = "hottext";
};
postInstall = ''
cp -r $desktopItem/* $out
'';
meta = finalAttrs.src.meta // {
description = "Simple RSVP speed-reading utility";
license = lib.licenses.unlicense;
homepage = "https://git.sr.ht/~ehmry/hottext";
maintainers = with lib.maintainers; [ ehmry ];
mainProgram = "hottext";
};
})