{ lib , fetchFromGitHub , buildGoModule }: buildGoModule rec { pname = "clash-meta"; version = "1.15.1"; src = fetchFromGitHub { owner = "MetaCubeX"; repo = "Clash.Meta"; rev = "v${version}"; hash = "sha256-gOUG+XtLfkgnbTj1yUun50pevOh+aPXfIlof5/U2ud8="; }; vendorHash = "sha256-My/fwa8BgaJcSGKcyyzUExVE0M2fk7rMZtOBW7V5edQ="; # 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"; }; }