nyaa: init at 0.9.1 (#392566)

This commit is contained in:
jopejoe1
2025-03-29 16:50:17 +01:00
committed by GitHub
+37
View File
@@ -0,0 +1,37 @@
{
fetchFromGitHub,
lib,
nix-update-script,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "nyaa";
version = "0.9.1";
src = fetchFromGitHub {
owner = "Beastwick18";
repo = "nyaa";
tag = "v${finalAttrs.version}";
hash = "sha256-WxOGtNMqQoEgztLaitwpE4MusGaLuKMmqi9L4prfOBY=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-oCe0Yn0DuwF7rG+MGBGQ0Fsgt3c4Wju7uFkp3+IiP0I=";
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/Beastwick18/nyaa/releases/tag/v${finalAttrs.version}";
description = "Tui tool for browsing and downloading torrents";
homepage = "https://github.com/Beastwick18/nyaa";
license = lib.licenses.gpl3Plus;
mainProgram = "nyaa";
maintainers = with lib.maintainers; [ redyf ];
platforms = lib.platforms.unix;
};
})