mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "zoraxy";
|
|
version = "3.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tobychui";
|
|
repo = "zoraxy";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-NhjT1z/O2KJtlF/LkGWgxhm2/i83mJUZeBHDiZke0FE=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/src";
|
|
|
|
vendorHash = "sha256-HaQP6ZARSHwEnW/G95t5NHdM8/EcXEfN2Q1wPVRWIzQ=";
|
|
|
|
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;
|
|
};
|
|
})
|