about summary refs log tree commit diff
path: root/pkgs/by-name/ws/wstunnel/package.nix
blob: 9e172a08f37576ee4fd61d746ed0a6e5c04f3796 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ fetchFromGitHub
, rustPlatform
, lib
}:

rustPlatform.buildRustPackage rec {
  pname = "wstunnel";
  version = "9.6.2";

  src = fetchFromGitHub {
    owner = "erebe";
    repo  = "wstunnel";
    rev = "v${version}";
    hash = "sha256-0r+8C8Gf3/s3opzplzc22d9VVp39FtBq1bYkxlmtqjg=";
  };

  cargoHash = "sha256-hHVxa7Ihmuuf26ZSzGmrHA2RczhzXtse3h1M4cNCvhw=";

  checkFlags = [
    # make use of network connection
    "--skip=tcp::tests::test_proxy_connection"
  ];

  meta = {
    description = "Tunneling program over websocket protocol";
    mainProgram = "wstunnel";
    homepage    = "https://github.com/erebe/wstunnel";
    license     = with lib.licenses; [ bsd3 ];
    maintainers = with lib.maintainers; [ neverbehave ];
    platforms   = lib.platforms.linux;
  };
}