python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / networking / tun2socks / default.nix
blob7706ff8e8886cdf9842229bc5684dcfc04d10855
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "tun2socks";
8   version = "2.4.1";
10   src = fetchFromGitHub {
11     owner = "xjasonlyu";
12     repo = pname;
13     rev = "v${version}";
14     sha256 = "sha256-FBYRqxS8DJbIc8j8X6WNxl6a1YRcNrPSnNfrq/Y0fMM=";
15   };
17   vendorSha256 = "sha256-XWzbEtYd8h63QdpAQZTGxyxMAAnpKO9Fp4y8/eeZ7Xw=";
19   ldflags = [
20     "-w" "-s" "-buildid="
21     "-X github.com/xjasonlyu/tun2socks/v2/internal/version.Version=v${version}"
22     "-X github.com/xjasonlyu/tun2socks/v2/internal/version.GitCommit=v${version}"
23   ];
25   meta = with lib; {
26     homepage = "https://github.com/xjasonlyu/tun2socks";
27     description = "tun2socks - powered by gVisor TCP/IP stack";
28     license = licenses.gpl3Plus;
29     maintainers = with maintainers; [ nickcao ];
30   };