2022-08-08 22:07:05 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hysteria";
|
2022-08-15 04:28:28 +01:00
|
|
|
version = "1.2.0";
|
2022-08-08 22:07:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "HyNetwork";
|
2022-08-15 04:28:28 +01:00
|
|
|
repo = pname;
|
2022-08-08 22:07:05 +01:00
|
|
|
rev = "v${version}";
|
2022-08-15 04:28:28 +01:00
|
|
|
sha256 = "sha256-aHIb79P1a+91hIcK1toHZqqXIZ0rwfGXDQc42rQQmX4=";
|
2022-08-08 22:07:05 +01:00
|
|
|
};
|
|
|
|
|
2022-08-15 04:28:28 +01:00
|
|
|
vendorSha256 = "sha256-yAQpyz4pDXOfGF4hho/2Pt9yD3VdWYAmIvaXJjDMjis=";
|
2022-08-08 22:07:05 +01:00
|
|
|
proxyVendor = true;
|
|
|
|
|
|
|
|
# Network required
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A feature-packed proxy & relay utility optimized for lossy, unstable connections";
|
|
|
|
homepage = "https://github.com/HyNetwork/hysteria";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ oluceps ];
|
|
|
|
};
|
|
|
|
}
|