nixpkgs-suyu/pkgs/tools/text/hottext/default.nix

41 lines
960 B
Nix
Raw Normal View History

2021-09-02 19:03:01 +02:00
{ lib, nimPackages, fetchurl, gentium, makeDesktopItem }:
2021-05-08 12:22:21 +02:00
2021-09-02 19:03:01 +02:00
nimPackages.buildNimPackage rec {
2021-05-08 12:22:21 +02:00
pname = "hottext";
2021-08-18 14:53:01 +02:00
version = "1.4";
2021-05-08 12:22:21 +02:00
2021-09-02 19:03:01 +02:00
nimBinOnly = true;
2021-05-08 12:22:21 +02:00
src = fetchurl {
url = "https://git.sr.ht/~ehmry/hottext/archive/v${version}.tar.gz";
2021-08-18 14:53:01 +02:00
sha256 = "sha256-hIUofi81zowSMbt1lUsxCnVzfJGN3FEiTtN8CEFpwzY=";
2021-05-08 12:22:21 +02:00
};
2021-09-02 19:03:01 +02:00
buildInputs = with nimPackages; [
pixie
sdl2
];
2021-05-08 12:22:21 +02:00
HOTTEXT_FONT_PATH = "${gentium}/share/fonts/truetype/GentiumPlus-Regular.ttf";
2021-05-08 12:22:21 +02:00
desktopItem = makeDesktopItem {
categories = "Utility;";
comment = meta.description;
desktopName = pname;
exec = pname;
name = pname;
};
2021-09-02 19:03:01 +02:00
postInstall = ''
2021-05-08 12:22:21 +02:00
cp -r $desktopItem/* $out
'';
meta = with lib; {
broken = true; # Needs to be updated to latest Pixie API.
2021-05-08 12:22:21 +02:00
description = "Simple RSVP speed-reading utility";
license = licenses.unlicense;
homepage = "https://git.sr.ht/~ehmry/hottext";
maintainers = with maintainers; [ ehmry ];
};
}