|
|
@ -48,36 +48,39 @@ network and application layer, supporting various proxy and anti-censorship |
|
|
|
protocols out-of-the-box.") |
|
|
|
protocols out-of-the-box.") |
|
|
|
(license license:gpl3))) |
|
|
|
(license license:gpl3))) |
|
|
|
|
|
|
|
|
|
|
|
(define-public clash-meta-bin |
|
|
|
(define-public mihomo-bin |
|
|
|
(package |
|
|
|
(package |
|
|
|
(name "clash-meta-bin") |
|
|
|
(name "mihomo-bin") |
|
|
|
(version "1.16.0") |
|
|
|
(version "1.18.0") |
|
|
|
(source (origin |
|
|
|
(source (origin |
|
|
|
(method url-fetch) |
|
|
|
(method url-fetch) |
|
|
|
(uri (string-append "https://github.com/MetaCubeX/Clash.Meta" |
|
|
|
(uri (string-append |
|
|
|
"/releases/download/v" version |
|
|
|
"https://github.com/MetaCubeX/mihomo/releases/download/v" |
|
|
|
"/clash.meta-linux-amd64-v" version ".gz")) |
|
|
|
version "/mihomo-linux-amd64-v" version ".gz")) |
|
|
|
(sha256 |
|
|
|
(sha256 |
|
|
|
(base32 |
|
|
|
(base32 |
|
|
|
"1kl4v87lqnc78zcvh0a9kyx3gfbj74nmpgcdd93kpaxa3rmrfnjb")))) |
|
|
|
"1b2ljl14k4vbpq4dgms1hk0iys161afyr1j2hl2hga70ay6n7j7i")))) |
|
|
|
(build-system copy-build-system) |
|
|
|
(build-system copy-build-system) |
|
|
|
(arguments |
|
|
|
(arguments |
|
|
|
(list #:install-plan |
|
|
|
(list #:install-plan |
|
|
|
#~'((#$(string-append |
|
|
|
#~'((#$(string-append |
|
|
|
"clash.meta-linux-amd64-v" (package-version this-package)) |
|
|
|
"mihomo-linux-amd64-v" (package-version this-package)) |
|
|
|
"bin/clash.meta")) |
|
|
|
"bin/mihomo")) |
|
|
|
#:phases |
|
|
|
#:phases |
|
|
|
#~(modify-phases %standard-phases |
|
|
|
#~(modify-phases %standard-phases |
|
|
|
(add-after 'install 'fix-permission |
|
|
|
(add-after 'install 'fix-permission |
|
|
|
(lambda _ |
|
|
|
(lambda _ |
|
|
|
(chmod (string-append #$output "/bin/clash.meta") #o555)))))) |
|
|
|
(chmod (string-append #$output "/bin/mihomo") #o555)))))) |
|
|
|
(supported-systems '("x86_64-linux")) |
|
|
|
(supported-systems '("x86_64-linux")) |
|
|
|
(home-page "https://wiki.metacubex.one/") |
|
|
|
(home-page "https://wiki.metacubex.one/") |
|
|
|
(synopsis "Rule-based tunnel in Go") |
|
|
|
(synopsis "Rule-based tunnel in Go") |
|
|
|
(description |
|
|
|
(description |
|
|
|
"This package provides @command{clash.meta}, another @code{clash} kernel.") |
|
|
|
"This package provides @command{mihomo}, another @code{clash} kernel.") |
|
|
|
(license license:gpl3))) |
|
|
|
(license license:gpl3))) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define-public clash-meta-bin |
|
|
|
|
|
|
|
(deprecated-package "clash-meta-bin" mihomo-bin)) |
|
|
|
|
|
|
|
|
|
|
|
(define-public cloudflare-warp-bin |
|
|
|
(define-public cloudflare-warp-bin |
|
|
|
(package |
|
|
|
(package |
|
|
|
(name "cloudflare-warp-bin") |
|
|
|
(name "cloudflare-warp-bin") |
|
|
|