-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathpackage.nix
More file actions
48 lines (40 loc) · 1.26 KB
/
package.nix
File metadata and controls
48 lines (40 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
lib,
flake,
fetchFromGitHub,
rustPlatform,
versionCheckHook,
versionCheckHomeHook,
}:
rustPlatform.buildRustPackage rec {
pname = "cc-switch-cli";
version = "5.3.4";
src = fetchFromGitHub {
owner = "SaladDay";
repo = "cc-switch-cli";
tag = "v${version}";
hash = "sha256-ppsyFSdB1LXQr6yNFlzkwG6NA7nq2vFXWBmgk/wtFks=";
};
cargoRoot = "src-tauri";
buildAndTestSubdir = "src-tauri";
cargoHash = "sha256-4+0fTo1SqDD/nSnpufa6YUxbrSDC5xmVWXt4JL9FxOY=";
# Tests require network access and runtime configuration
doCheck = false;
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
versionCheckHomeHook
];
passthru.category = "Claude Code Ecosystem";
meta = with lib; {
description = "CLI version of CC Switch - All-in-One Assistant for Claude Code, Codex & Gemini CLI";
homepage = "https://github.com/SaladDay/cc-switch-cli";
changelog = "https://github.com/SaladDay/cc-switch-cli/releases/tag/v${version}";
downloadPage = "https://github.com/SaladDay/cc-switch-cli/releases";
license = licenses.mit;
sourceProvenance = with sourceTypes; [ fromSource ];
maintainers = with flake.lib.maintainers; [ zrubing ];
mainProgram = "cc-switch";
platforms = platforms.unix;
};
}