Merge pull request #277696 from oluceps/hysteria-update

hysteria: 2.2.2 -> 2.2.3
This commit is contained in:
Nick Cao 2023-12-31 10:39:49 -05:00 committed by GitHub
commit 2429eeaa61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,23 +4,26 @@
}: }:
buildGoModule rec { buildGoModule rec {
pname = "hysteria"; pname = "hysteria";
version = "2.2.2"; version = "2.2.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "apernet"; owner = "apernet";
repo = pname; repo = pname;
rev = "app/v${version}"; rev = "app/v${version}";
hash = "sha256-5j24wIZ4LloE9t0sv5p+oiYmexOaORASNN9JylXxrk4="; hash = "sha256-xvnshGDQ69yXZ5BnEYAhoJOXG0uZ0lZRnp/rdnmNAkE=";
}; };
vendorHash = "sha256-ErU1yEtSuMVkoJv9hyaE4OZS5o7GxuleoK0Q9BI2skw="; vendorHash = "sha256-zjj5MhCVQbsLwZs7LcGhozXGmfzFrDipNsEswiseMYI=";
proxyVendor = true; proxyVendor = true;
ldflags = [ ldflags =
"-s" let cmd = "github.com/apernet/hysteria/app/cmd";
"-w" in [
"-X main.appVersion=${version}" "-s"
]; "-w"
"-X ${cmd}.appVersion=${version}"
"-X ${cmd}.appType=release"
];
postInstall = '' postInstall = ''
mv $out/bin/app $out/bin/hysteria mv $out/bin/app $out/bin/hysteria
@ -33,7 +36,7 @@ buildGoModule rec {
description = "A feature-packed proxy & relay utility optimized for lossy, unstable connections"; description = "A feature-packed proxy & relay utility optimized for lossy, unstable connections";
homepage = "https://github.com/apernet/hysteria"; homepage = "https://github.com/apernet/hysteria";
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux; platforms = platforms.unix;
maintainers = with maintainers; [ oluceps ]; maintainers = with maintainers; [ oluceps ];
}; };
} }