2021-09-23 15:35:13 +00:00
|
|
|
{ lib, nimPackages, fetchurl, gentium, makeDesktopItem }:
|
2021-05-28 09:39:13 +00:00
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
nimPackages.buildNimPackage rec {
|
2021-05-28 09:39:13 +00:00
|
|
|
pname = "hottext";
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "1.4";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
nimBinOnly = true;
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://git.sr.ht/~ehmry/hottext/archive/v${version}.tar.gz";
|
2021-08-22 07:53:02 +00:00
|
|
|
sha256 = "sha256-hIUofi81zowSMbt1lUsxCnVzfJGN3FEiTtN8CEFpwzY=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
buildInputs = with nimPackages; [
|
|
|
|
bumpy
|
|
|
|
chroma
|
|
|
|
flatty
|
|
|
|
nimsimd
|
|
|
|
pixie
|
|
|
|
sdl2
|
|
|
|
typography
|
|
|
|
vmath
|
|
|
|
zippy
|
|
|
|
];
|
2021-05-28 09:39:13 +00:00
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
HOTTEXT_FONT_PATH = "${gentium}/share/fonts/truetype/GentiumPlus-Regular.ttf";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
categories = "Utility;";
|
|
|
|
comment = meta.description;
|
|
|
|
desktopName = pname;
|
|
|
|
exec = pname;
|
|
|
|
name = pname;
|
|
|
|
};
|
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
postInstall = ''
|
2021-05-28 09:39:13 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|