Skip to content

Commit 778a942

Browse files
authored
clashtui: init at 0.2.3 (#382445)
2 parents c92aa4c + 3153339 commit 778a942

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
rustPlatform,
5+
versionCheckHook,
6+
nix-update-script,
7+
}:
8+
9+
rustPlatform.buildRustPackage rec {
10+
pname = "clashtui";
11+
version = "0.2.3";
12+
13+
src = fetchFromGitHub {
14+
owner = "JohanChane";
15+
repo = "clashtui";
16+
tag = "v${version}";
17+
hash = "sha256-2iQVYZrqo55EO0ZGn6ktP/3Py5v+LiVgrSYTtaxYXyQ=";
18+
};
19+
20+
sourceRoot = "${src.name}/clashtui";
21+
22+
useFetchCargoVendor = true;
23+
24+
cargoHash = "sha256-8oDnumyn0Ry1AIWNLO2+1HSPsxkVLRLItgEVEXqSRFI=";
25+
26+
cargoBuildFlags = [ "--all-features" ];
27+
28+
checkFlags = [
29+
# need fhs
30+
"--skip=utils::config::test::test_save_and_load"
31+
];
32+
33+
doInstallCheck = true;
34+
35+
versionCheckProgramArg = "--version";
36+
37+
nativeInstallCheckInputs = [
38+
versionCheckHook
39+
];
40+
41+
passthru.updateScript = nix-update-script { };
42+
43+
meta = {
44+
description = "Mihomo (Clash.Meta) TUI Client";
45+
homepage = "https://github.com/JohanChane/clashtui";
46+
changelog = "https://github.com/JohanChane/clashtui/releases/tag/v${version}";
47+
mainProgram = "clashtui";
48+
license = lib.licenses.mit;
49+
platforms = lib.platforms.linux;
50+
maintainers = with lib.maintainers; [ nayeko ];
51+
};
52+
}

0 commit comments

Comments
 (0)