3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/hysteria/default.nix

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

40 lines
845 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "hysteria";
2022-12-11 13:24:54 +00:00
version = "1.3.2";
src = fetchFromGitHub {
owner = "HyNetwork";
2022-08-15 04:28:28 +01:00
repo = pname;
rev = "v${version}";
2022-12-11 13:24:54 +00:00
sha256 = "sha256-9ib/29yCfI4oS2yZQUePzZ+5FVTevvJCPjpTXmKnKeA=";
};
2022-12-11 13:24:54 +00:00
vendorSha256 = "sha256-sRPnPKVuvcUHEldKVpgmGFGpwOSK5qh4EfeUQMFdMw8=";
proxyVendor = true;
2022-09-11 17:04:36 +01:00
ldflags = [
"-s"
"-w"
"-X main.appVersion=${version}"
];
postInstall = ''
mv $out/bin/cmd $out/bin/hysteria
'';
# 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 ];
};
}