Files
nixpkgs/pkgs/by-name/hy/hygg/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.6 KiB
Nix

{
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 ];
};
})