diff --git a/pkgs/by-name/hy/hygg/package.nix b/pkgs/by-name/hy/hygg/package.nix new file mode 100644 index 000000000000..ff1901af28cd --- /dev/null +++ b/pkgs/by-name/hy/hygg/package.nix @@ -0,0 +1,54 @@ +{ + lib, + pkgs, + fetchFromGitHub, + rustPlatform, + nix-update-script, + versionCheckHook, + writableTmpDirAsHomeHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "hygg"; + version = "0.1.19"; + + src = fetchFromGitHub { + owner = "kruseio"; + repo = "hygg"; + tag = "${finalAttrs.version}"; + hash = "sha256-wxgHlRqe/g9LppWWTzft9hTA8heuFvGkKvA7nG2PsxA="; + }; + + cargoHash = "sha256-JqM7e/xfqZnN3FuXPSEaQRH4yh5hqp2HGYM0YIcnaW4="; + + nativeBuildInputs = [ + writableTmpDirAsHomeHook + ]; + checkFlags = [ + # e2e test fails since it cant find the input pdf file + "--skip=tests::test_end_to_end" + "--skip=test_epub_processing" + ]; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Minimalistic Vim-like TUI document reader"; + longDescription = '' + Hygg provides universal document support for PDF,EPUB DOCX amongst others + It also comes with: + * keyboard based navigation - Vim-inspired keybindings + * Powerful search - Find anything instantly, highlight important passages, add bookmarks + * Never lose your place - Automatic progress saving + * Extensible workflows - Execute commands directly from copied text + * Respects your privacy - Run locally without server, or selfhost the sync server + ''; + homepage = "https://terminaltrove.com/hygg"; + downloadPage = "https://github.com/kruseio/hygg"; + license = lib.licenses.agpl3Only; + platforms = lib.platforms.linux ++ [ "aarch64-darwin" ]; + maintainers = [ lib.maintainers.FKouhai ]; + }; +})