depot/pkgs/by-name/ho/hottext/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

37 lines
965 B
Nix

{ lib, buildNimPackage, fetchFromSourcehut, gentium, 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}/share/fonts/truetype/GentiumPlus-Regular.ttf";
desktopItem = makeDesktopItem {
categories = [ "Utility" ];
comment = finalAttrs.meta.description;
desktopName = finalAttrs.pname;
exec = finalAttrs.pname;
name = finalAttrs.pname;
};
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";
};
})