1 { lib, buildNimPackage, fetchFromSourcehut, gentium, makeDesktopItem }:
3 buildNimPackage (finalAttrs: {
7 src = fetchFromSourcehut {
10 rev = finalAttrs.version;
11 hash = "sha256-ncH/1PV4vZY7JCUJ87FPz5bdrQsNlYxzGdc5BQNfQeA=";
14 lockFile = ./lock.json;
16 HOTTEXT_FONT_PATH = "${gentium}/share/fonts/truetype/GentiumPlus-Regular.ttf";
18 desktopItem = makeDesktopItem {
19 categories = [ "Utility" ];
20 comment = finalAttrs.meta.description;
21 desktopName = finalAttrs.pname;
22 exec = finalAttrs.pname;
23 name = finalAttrs.pname;
27 cp -r $desktopItem/* $out
30 meta = finalAttrs.src.meta // {
31 description = "Simple RSVP speed-reading utility";
32 license = lib.licenses.unlicense;
33 homepage = "https://git.sr.ht/~ehmry/hottext";
34 maintainers = with lib.maintainers; [ ehmry ];
35 mainProgram = "hottext";