Unverified Commit 4843afb2 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #191365 from oluceps/add_clash-meta

clash-meta: init at 1.14.2
parents 04a05c2e a43dc018
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
  pname = "clash-meta";
  version = "1.14.2";

  src = fetchFromGitHub {
    owner = "MetaCubeX";
    repo = "Clash.Meta";
    rev = "v${version}";
    sha256 = "sha256-sn+0TNXCK4af4zfkf09hLsFkuvkcyjhwh35kKo993FQ=";
  };

  vendorHash = "sha256-3j+5fF57eu7JJd3rnrWYwuWDivycUkUTTzptYaK3G/Q=";

  # Do not build testing suit
  excludedPackages = [ "./test" ];

  ldflags = [
    "-s"
    "-w"
    "-X github.com/Dreamacro/clash/constant.Version=${version}"
  ];

  tags = [
    "with_gvisor"
  ];

  # network required
  doCheck = false;

  postInstall = ''
    mv $out/bin/clash $out/bin/clash-meta
  '';

  meta = with lib; {
    description = "Another Clash Kernel";
    homepage = "https://github.com/MetaCubeX/Clash.Meta";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ oluceps ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -4018,6 +4018,8 @@ with pkgs;
  clash-geoip = callPackage ../data/misc/clash-geoip { };
  clash-meta = callPackage ../tools/networking/clash-meta { };
  clevercsv = with python3Packages; toPythonApplication clevercsv;
  clevis = callPackage ../tools/security/clevis {