Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
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";
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|