23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
31 lines
775 B
Nix
31 lines
775 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "tun2socks";
|
|
version = "2.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xjasonlyu";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-siAengVJXusQ5o9cTaADeRn5eW4IoCHkMMf6Bx8iWws=";
|
|
};
|
|
|
|
vendorHash = "sha256-zeiOcn33PnyoseYb0wynkn7MfGp3rHEYBStY98C6aR8=";
|
|
|
|
ldflags = [
|
|
"-w" "-s"
|
|
"-X github.com/xjasonlyu/tun2socks/v2/internal/version.Version=v${version}"
|
|
"-X github.com/xjasonlyu/tun2socks/v2/internal/version.GitCommit=v${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/xjasonlyu/tun2socks";
|
|
description = "tun2socks - powered by gVisor TCP/IP stack";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ nickcao ];
|
|
};
|
|
}
|