hath-rust: init at 1.11.0

This commit is contained in:
Moraxyc 2025-06-07 12:19:34 +08:00
parent 067a39e41a
commit e926b19c2d
No known key found for this signature in database
GPG Key ID: 5D0872C32F23C47A

View File

@ -0,0 +1,36 @@
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "hath-rust";
version = "1.11.0";
src = fetchFromGitHub {
owner = "james58899";
repo = "hath-rust";
tag = "v${finalAttrs.version}";
hash = "sha256-y2DpYKUA6XdtkynHhavh2SLl9jR+WFCOoo+Ep3IEq7w=";
};
cargoHash = "sha256-al5JAiRzXFKuUdIRgnwkKEN9rHqU82/StiIjPkQjumU=";
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Unofficial Hentai@Home client written in Rust";
homepage = "https://github.com/james58899/hath-rust";
changelog = "https://github.com/james58899/hath-rust/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ moraxyc ];
mainProgram = "hath-rust";
};
})