nixpkgs/pkgs/by-name/zo/zoraxy/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.1 KiB
Nix
Raw Normal View History

2024-05-19 10:06:41 +00:00
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "zoraxy";
2024-06-10 16:53:49 +00:00
version = "3.0.6";
2024-05-19 10:06:41 +00:00
src = fetchFromGitHub {
owner = "tobychui";
repo = "zoraxy";
rev = "refs/tags/${version}";
2024-06-10 16:53:49 +00:00
sha256 = "sha256-Pv7Ey3d07+gJfMyQxC5Do0g5HZGcPXttpvmN0YNjXvY=";
2024-05-19 10:06:41 +00:00
};
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";
2024-05-19 10:06:41 +00:00
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";
};
}