hygg: init at 0.1.19
This commit is contained in:
54
pkgs/by-name/hy/hygg/package.nix
Normal file
54
pkgs/by-name/hy/hygg/package.nix
Normal file
@@ -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 ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user