2019-10-03 17:25:35 +01:00
|
|
|
{ mkDerivation, async, base, base64-bytestring, binary, bytestring
|
|
|
|
, classy-prelude, cmdargs, connection, hslogger, mtl, network
|
2021-01-25 08:26:54 +00:00
|
|
|
, network-conduit-tls, streaming-commons, text
|
2019-10-03 17:25:35 +01:00
|
|
|
, unordered-containers, websockets
|
2020-08-22 15:32:39 +01:00
|
|
|
, hspec, iproute
|
2019-10-03 17:25:35 +01:00
|
|
|
, lib, fetchFromGitHub, fetchpatch
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "wstunnel";
|
2020-08-22 15:32:39 +01:00
|
|
|
version = "unstable-2020-07-12";
|
2019-10-03 17:25:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "erebe";
|
|
|
|
repo = pname;
|
2020-08-22 15:32:39 +01:00
|
|
|
rev = "093a01fa3a34eee5efd8f827900e64eab9d16c05";
|
|
|
|
sha256 = "17p9kq0ssz05qzl6fyi5a5fjbpn4bxkkwibb9si3fhzrxc508b59";
|
2019-10-03 17:25:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
isLibrary = false;
|
|
|
|
isExecutable = true;
|
|
|
|
|
|
|
|
libraryHaskellDepends = [
|
|
|
|
async base base64-bytestring binary bytestring classy-prelude
|
|
|
|
connection hslogger mtl network network-conduit-tls
|
|
|
|
streaming-commons text unordered-containers websockets
|
2020-08-22 15:32:39 +01:00
|
|
|
iproute
|
2019-10-03 17:25:35 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
executableHaskellDepends = [
|
|
|
|
base bytestring classy-prelude cmdargs hslogger text
|
|
|
|
];
|
|
|
|
|
2020-08-22 15:32:39 +01:00
|
|
|
testHaskellDepends = [ base text hspec ];
|
2019-10-03 17:25:35 +01:00
|
|
|
|
|
|
|
homepage = "https://github.com/erebe/wstunnel";
|
|
|
|
description = "UDP and TCP tunnelling over WebSocket";
|
|
|
|
maintainers = with lib.maintainers; [ gebner ];
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
|
|
|
|
}
|