Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
914 B
Nix
43 lines
914 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";
|
|
mainProgram = "hottext";
|
|
};
|
|
})
|