mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
4ccd33e561
Upstream changed/republish the v1.16.0 tag causing a hash mismatch
46 lines
908 B
Nix
46 lines
908 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "clash-meta";
|
|
version = "1.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MetaCubeX";
|
|
repo = "Clash.Meta";
|
|
rev = "v${version}";
|
|
hash = "sha256-ORyjCYf2OPrSt/juiBk0Gf2Az4XoZipKBWWFXf8nIqE=";
|
|
};
|
|
|
|
vendorHash = "sha256-ySCmHLuMTCxBcAYo7YD8zOpUAa90PQmeLLt+uOn40Pk=";
|
|
|
|
# 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 ];
|
|
mainProgram = "clash-meta";
|
|
};
|
|
}
|