nixpkgs/pkgs/by-name/ws/wstunnel/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1 KiB
Nix
Raw Normal View History

2024-08-16 20:54:19 +02:00
{
lib,
fetchFromGitHub,
rustPlatform,
testers,
wstunnel,
nixosTests,
2024-06-06 23:31:04 +02:00
}:
2024-06-13 10:18:57 +02:00
let
2024-07-20 18:02:15 +02:00
version = "9.7.4";
2024-06-13 10:18:57 +02:00
in
rustPlatform.buildRustPackage {
2024-06-06 23:31:04 +02:00
pname = "wstunnel";
2024-06-13 10:18:57 +02:00
inherit version;
2024-06-06 23:31:04 +02:00
src = fetchFromGitHub {
owner = "erebe";
2024-06-13 10:18:57 +02:00
repo = "wstunnel";
2024-06-06 23:31:04 +02:00
rev = "v${version}";
2024-07-20 18:02:15 +02:00
hash = "sha256-OFm0Jk06Mxzr4F7KrMBGFqcDSuTtrMvBSK99bbOgua4=";
2024-06-06 23:31:04 +02:00
};
2024-07-20 18:02:15 +02:00
cargoHash = "sha256-JMRcXuw6AKfwViOgYAgFdSwUeTo04rEkKj+t+W8wjGI=";
2024-06-06 23:31:04 +02:00
checkFlags = [
2024-06-13 10:18:57 +02:00
# Tries to launch a test container
2024-06-06 23:31:04 +02:00
"--skip=tcp::tests::test_proxy_connection"
];
passthru.tests = {
version = testers.testVersion { package = wstunnel; };
nixosTest = nixosTests.wstunnel;
};
2024-06-13 10:18:57 +02:00
2024-06-06 23:31:04 +02:00
meta = {
2024-06-13 10:18:57 +02:00
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}";
2024-06-13 10:18:57 +02:00
license = lib.licenses.bsd3;
2024-08-16 20:54:19 +02:00
maintainers = with lib.maintainers; [
rvdp
neverbehave
];
2024-06-06 23:31:04 +02:00
mainProgram = "wstunnel";
};
}