diff --git a/pkgs/by-name/ha/hath-rust/package.nix b/pkgs/by-name/ha/hath-rust/package.nix new file mode 100644 index 000000000000..ca25ac15359d --- /dev/null +++ b/pkgs/by-name/ha/hath-rust/package.nix @@ -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"; + }; +})