mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
nixosTests,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
let
|
|
version = "10.1.1";
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "wstunnel";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "erebe";
|
|
repo = "wstunnel";
|
|
rev = "v${version}";
|
|
hash = "sha256-qEWIyQkLRrmTH40S96hj8JXFz/VJChIbg8qEQc938nI=";
|
|
};
|
|
|
|
cargoHash = "sha256-3b+pX/qQuhOY1OYr+CfT5wtiJcEJ8CJJsQZ4QOcYv74=";
|
|
|
|
nativeBuildInputs = [ versionCheckHook ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
checkFlags = [
|
|
# Tries to launch a test container
|
|
"--skip=tcp::tests::test_proxy_connection"
|
|
"--skip=protocols::tcp::server::tests::test_proxy_connection"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests = {
|
|
nixosTest = nixosTests.wstunnel;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Tunnel all your traffic over Websocket or HTTP2 - Bypass firewalls/DPI";
|
|
homepage = "https://github.com/erebe/wstunnel";
|
|
changelog = "https://github.com/erebe/wstunnel/releases/tag/v${version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [
|
|
rvdp
|
|
neverbehave
|
|
];
|
|
mainProgram = "wstunnel";
|
|
};
|
|
}
|