depot/third_party/nixpkgs/pkgs/by-name/zo/zoraxy/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "zoraxy";
version = "3.0.6";
src = fetchFromGitHub {
owner = "tobychui";
repo = "zoraxy";
rev = "refs/tags/${version}";
sha256 = "sha256-Pv7Ey3d07+gJfMyQxC5Do0g5HZGcPXttpvmN0YNjXvY=";
};
sourceRoot = "${src.name}/src";
vendorHash = "sha256-YI6LSccPDnVhGyPIEFIF41ex0WJlHtb3nP+8+1G/LA0=";
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";
};
}