Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Normal View History

2025-02-16 08:05:30 +08:00
{
lib,
fetchFromGitHub,
rustPlatform,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "clashtui";
version = "0.2.3";
src = fetchFromGitHub {
owner = "JohanChane";
repo = "clashtui";
tag = "v${version}";
hash = "sha256-2iQVYZrqo55EO0ZGn6ktP/3Py5v+LiVgrSYTtaxYXyQ=";
};
sourceRoot = "${src.name}/clashtui";
useFetchCargoVendor = true;
cargoHash = "sha256-8oDnumyn0Ry1AIWNLO2+1HSPsxkVLRLItgEVEXqSRFI=";
cargoBuildFlags = [ "--all-features" ];
checkFlags = [
# need fhs
"--skip=utils::config::test::test_save_and_load"
];
doInstallCheck = true;
versionCheckProgramArg = "--version";
nativeInstallCheckInputs = [
versionCheckHook
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Mihomo (Clash.Meta) TUI Client";
homepage = "https://github.com/JohanChane/clashtui";
changelog = "https://github.com/JohanChane/clashtui/releases/tag/v${version}";
mainProgram = "clashtui";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ nayeko ];
};
}