Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "zoraxy";
|
|
version = "3.2.5r2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tobychui";
|
|
repo = "zoraxy";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-O7Rzx62O0h3kK6+lMag+5totijJoobOKi8DNWT9sDjg=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/src";
|
|
|
|
vendorHash = "sha256-Bl3FI8lodSV5kzHvM8GHbQsep0W8s2BG8IbGf2AahZc=";
|
|
|
|
checkFlags =
|
|
let
|
|
# Skip tests that require network access
|
|
skippedTests = [
|
|
"TestExtractIssuerNameFromPEM"
|
|
"TestReplaceLocationHost"
|
|
"TestReplaceLocationHostRelative"
|
|
"TestHandleTraceRoute"
|
|
"TestHandlePing"
|
|
"TestListTable"
|
|
"TestWriteAndRead"
|
|
"TestHTTP1p1KeepAlive"
|
|
"TestGetPluginListFromURL"
|
|
"TestUpdateDownloadablePluginList"
|
|
];
|
|
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${finalAttrs.version}/CHANGELOG.md";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = [ lib.maintainers.luftmensch-luftmensch ];
|
|
mainProgram = "zoraxy";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|