Skip to content

Commit

Permalink
clashtui: init at 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lyranico authored Feb 5, 2025
1 parent 7de1b62 commit 2cf7fa3
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pkgs/by-name/cl/clashtui/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
lib,
fetchFromGitHub,
rustPlatform,
versionCheckHook,
}:

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
];

meta = {
description = "Mihomo (Clash.Meta) TUI Client";
homepage = "https://github.com/JohanChane/clashtui";
changelog = "https://github.com/JohanChane/clashtui/releases/tag/v${version}";
license = lib.licenses.mit;
mainProgram = "clashtui";
maintainers = with lib.maintainers; [ lyranico ];
platforms = lib.platforms.linux;
};
}

0 comments on commit 2cf7fa3

Please sign in to comment.