nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 43 lines 965 B view raw
1{ 2 lib, 3 buildNimPackage, 4 fetchFromSourcehut, 5 gentium-plus, 6 makeDesktopItem, 7}: 8 9buildNimPackage (finalAttrs: { 10 pname = "hottext"; 11 version = "20231003"; 12 13 src = fetchFromSourcehut { 14 owner = "~ehmry"; 15 repo = "hottext"; 16 rev = finalAttrs.version; 17 hash = "sha256-ncH/1PV4vZY7JCUJ87FPz5bdrQsNlYxzGdc5BQNfQeA="; 18 }; 19 20 lockFile = ./lock.json; 21 22 HOTTEXT_FONT_PATH = "${gentium-plus}/share/fonts/truetype/GentiumPlus-Regular.ttf"; 23 24 desktopItem = makeDesktopItem { 25 categories = [ "Utility" ]; 26 comment = finalAttrs.meta.description; 27 desktopName = "hottext"; 28 exec = "hottext"; 29 name = "hottext"; 30 }; 31 32 postInstall = '' 33 cp -r $desktopItem/* $out 34 ''; 35 36 meta = finalAttrs.src.meta // { 37 description = "Simple RSVP speed-reading utility"; 38 license = lib.licenses.unlicense; 39 homepage = "https://git.sr.ht/~ehmry/hottext"; 40 maintainers = with lib.maintainers; [ ehmry ]; 41 mainProgram = "hottext"; 42 }; 43})