2024-05-19 10:06:41 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "zoraxy";
|
2024-09-04 15:03:26 +00:00
|
|
|
version = "3.1.1";
|
2024-05-19 10:06:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tobychui";
|
|
|
|
repo = "zoraxy";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-09-14 21:47:11 +00:00
|
|
|
hash = "sha256-ZjsBGtY6M5jIXylzg4k8U4krwqx5d5VuMiVHAeUIbXY=";
|
2024-05-19 10:06:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${src.name}/src";
|
|
|
|
|
2024-08-06 06:18:01 +00:00
|
|
|
vendorHash = "sha256-p2nczUMT3FfYX32yvbR0H5FyHV2v9I18yvn0lwUwy+A=";
|
2024-05-19 10:06:41 +00:00
|
|
|
|
|
|
|
checkFlags =
|
|
|
|
let
|
|
|
|
# Skip tests that require network access
|
|
|
|
skippedTests = [
|
|
|
|
"TestExtractIssuerNameFromPEM"
|
|
|
|
"TestReplaceLocationHost"
|
|
|
|
"TestReplaceLocationHostRelative"
|
|
|
|
"TestHandleTraceRoute"
|
|
|
|
"TestHandlePing"
|
|
|
|
];
|
|
|
|
in
|
|
|
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "General purpose HTTP reverse proxy and forwarding tool written in Go";
|
|
|
|
homepage = "https://zoraxy.arozos.com/";
|
|
|
|
changelog = "https://github.com/tobychui/zoraxy/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = lib.licenses.agpl3Only;
|
|
|
|
maintainers = [ lib.maintainers.luftmensch-luftmensch ];
|
|
|
|
mainProgram = "zoraxy";
|
2024-09-30 17:11:32 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2024-05-19 10:06:41 +00:00
|
|
|
};
|
|
|
|
}
|