clash-meta: 1.16.0 -> 1.18.1

This commit is contained in:
oluceps 2024-02-23 20:03:28 +08:00
parent 6e62521155
commit b16061a470
No known key found for this signature in database
2 changed files with 9 additions and 11 deletions

View file

@ -2,26 +2,26 @@
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "clash-meta";
version = "1.16.0";
version = "1.18.1";
src = fetchFromGitHub {
owner = "MetaCubeX";
repo = "Clash.Meta";
repo = "mihomo";
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" ];
ldflags = [
"-s"
"-w"
"-X github.com/Dreamacro/clash/constant.Version=${version}"
"-X github.com/metacubex/mihomo/constant.Version=${version}"
];
tags = [
@ -32,12 +32,12 @@ buildGoModule rec {
doCheck = false;
postInstall = ''
mv $out/bin/clash $out/bin/clash-meta
mv $out/bin/mihomo $out/bin/clash-meta
'';
meta = with lib; {
description = "Another Clash Kernel";
homepage = "https://github.com/MetaCubeX/Clash.Meta";
description = "A rule-based tunnel in Go. Present named mihomo";
homepage = "https://github.com/MetaCubeX/mihomo";
license = licenses.gpl3Only;
maintainers = with maintainers; [ oluceps ];
mainProgram = "clash-meta";

View file

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