diff --git a/usr/cli/clashctl.nix b/usr/cli/clashctl.nix index 390cf690..bac0fadd 100644 --- a/usr/cli/clashctl.nix +++ b/usr/cli/clashctl.nix @@ -2,19 +2,18 @@ , rustPlatform , fetchFromGitHub }: -rustPlatform.buildRustPackage rec { - pname = "clashctl"; - version = "b09e1faf80f1a25fa855499d8b34d36491e5a081"; +rustPlatform.buildRustPackage { + name = "clashctl"; src = fetchFromGitHub { # owner = "https://github.com/George-Miao/clashctl"; owner = "George-Miao"; - repo = pname; - rev = version; + repo = "clashctl"; + rev = "b09e1faf80f1a25fa855499d8b34d36491e5a081"; hash = "sha256-c7y64SsZEKdC8+umCY8+XBwxAHxn4YpqR48ASbHpkdM="; }; - cargoHash = "sha256-VEQ1amZxCTV4jefN20d8VV85/IaJivl0s8RVclV+jqg="; + cargoHash = "sha256-2d+phmMJeHZsJy300GwUAnh8KTGzpHCCIg8x4Wr8ytE="; doCheck = false;