summary refs log tree commit diff
path: root/pkgs/tools/text/hottext/default.nix
blob: f6c70013b4ceed99a9d46fe7770bf6b2a90cc7a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ 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; [
    pixie
    sdl2
  ];

  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; {
    broken = true; # Needs to be updated to latest Pixie API.
    description = "Simple RSVP speed-reading utility";
    license = licenses.unlicense;
    homepage = "https://git.sr.ht/~ehmry/hottext";
    maintainers = with maintainers; [ ehmry ];
  };
}