clashtui: init at 0.2.3 (#382445)

authored by Aleksana and committed by GitHub 778a942f c92aa4cb

+52
+52
pkgs/by-name/cl/clashtui/package.nix
··· 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 + }