84cb9d505d
GitOrigin-RevId: 51bcdc4cdaac48535dabf0ad4642a66774c609ed
46 lines
977 B
Nix
46 lines
977 B
Nix
{ lib, nimPackages, fetchurl, gentium, makeDesktopItem }:
|
|
|
|
nimPackages.buildNimPackage rec {
|
|
pname = "hottext";
|
|
version = "1.4";
|
|
|
|
nimBinOnly = true;
|
|
|
|
src = fetchurl {
|
|
url = "https://git.sr.ht/~ehmry/hottext/archive/v${version}.tar.gz";
|
|
sha256 = "sha256-hIUofi81zowSMbt1lUsxCnVzfJGN3FEiTtN8CEFpwzY=";
|
|
};
|
|
|
|
buildInputs = with nimPackages; [
|
|
bumpy
|
|
chroma
|
|
flatty
|
|
nimsimd
|
|
pixie
|
|
sdl2
|
|
typography
|
|
vmath
|
|
zippy
|
|
];
|
|
|
|
HOTTEXT_FONT_PATH = "${gentium}/share/fonts/truetype/GentiumPlus-Regular.ttf";
|
|
|
|
desktopItem = makeDesktopItem {
|
|
categories = "Utility;";
|
|
comment = meta.description;
|
|
desktopName = pname;
|
|
exec = pname;
|
|
name = pname;
|
|
};
|
|
|
|
postInstall = ''
|
|
cp -r $desktopItem/* $out
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Simple RSVP speed-reading utility";
|
|
license = licenses.unlicense;
|
|
homepage = "https://git.sr.ht/~ehmry/hottext";
|
|
maintainers = with maintainers; [ ehmry ];
|
|
};
|
|
}
|