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 {
pname = "hysteria";
version = "2.2.2";
version = "2.2.3";
src = fetchFromGitHub {
owner = "apernet";
repo = pname;
rev = "app/v${version}";
hash = "sha256-5j24wIZ4LloE9t0sv5p+oiYmexOaORASNN9JylXxrk4=";
hash = "sha256-xvnshGDQ69yXZ5BnEYAhoJOXG0uZ0lZRnp/rdnmNAkE=";
};
vendorHash = "sha256-ErU1yEtSuMVkoJv9hyaE4OZS5o7GxuleoK0Q9BI2skw=";
vendorHash = "sha256-zjj5MhCVQbsLwZs7LcGhozXGmfzFrDipNsEswiseMYI=";
proxyVendor = true;
ldflags = [
"-s"
"-w"
"-X main.appVersion=${version}"
];
ldflags =
let cmd = "github.com/apernet/hysteria/app/cmd";
in [
"-s"
"-w"
"-X ${cmd}.appVersion=${version}"
"-X ${cmd}.appType=release"
];
postInstall = ''
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";
homepage = "https://github.com/apernet/hysteria";
license = licenses.mit;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ oluceps ];
};
}