Merge pull request #290873 from oluceps/clash-meta-update

clash-meta: 1.16.0 -> 1.18.1
This commit is contained in:
Weijia Wang 2024-02-26 07:34:01 +01:00 committed by GitHub
commit fd5473b6f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 11 deletions

View file

@ -2,26 +2,26 @@
, fetchFromGitHub , fetchFromGitHub
, buildGoModule , buildGoModule
}: }:
buildGoModule rec { buildGoModule rec {
pname = "clash-meta"; pname = "clash-meta";
version = "1.16.0"; version = "1.18.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "MetaCubeX"; owner = "MetaCubeX";
repo = "Clash.Meta"; repo = "mihomo";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-ORyjCYf2OPrSt/juiBk0Gf2Az4XoZipKBWWFXf8nIqE="; hash = "sha256-ezOkDrpytZQdc+Txe4eUyuWY6oipn9jIrmu7aO8lNlQ=";
}; };
vendorHash = "sha256-ySCmHLuMTCxBcAYo7YD8zOpUAa90PQmeLLt+uOn40Pk="; vendorHash = "sha256-tvPR5kAta4MlMTwjfxwVOacRr2nVpfalbN08mfxml64=";
# Do not build testing suit
excludedPackages = [ "./test" ]; excludedPackages = [ "./test" ];
ldflags = [ ldflags = [
"-s" "-s"
"-w" "-w"
"-X github.com/Dreamacro/clash/constant.Version=${version}" "-X github.com/metacubex/mihomo/constant.Version=${version}"
]; ];
tags = [ tags = [
@ -32,12 +32,12 @@ buildGoModule rec {
doCheck = false; doCheck = false;
postInstall = '' postInstall = ''
mv $out/bin/clash $out/bin/clash-meta mv $out/bin/mihomo $out/bin/clash-meta
''; '';
meta = with lib; { meta = with lib; {
description = "Another Clash Kernel"; description = "A rule-based tunnel in Go. Present named mihomo";
homepage = "https://github.com/MetaCubeX/Clash.Meta"; homepage = "https://github.com/MetaCubeX/mihomo";
license = licenses.gpl3Only; license = licenses.gpl3Only;
maintainers = with maintainers; [ oluceps ]; maintainers = with maintainers; [ oluceps ];
mainProgram = "clash-meta"; mainProgram = "clash-meta";

View file

@ -4658,8 +4658,6 @@ with pkgs;
clash-geoip = callPackage ../data/misc/clash-geoip { }; clash-geoip = callPackage ../data/misc/clash-geoip { };
clash-meta = callPackage ../tools/networking/clash-meta { };
clash-verge = callPackage ../applications/networking/clash-verge { }; clash-verge = callPackage ../applications/networking/clash-verge { };
clevercsv = with python3Packages; toPythonApplication clevercsv; clevercsv = with python3Packages; toPythonApplication clevercsv;