Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / zo / zoraxy / package.nix
blob949984dd661a01f1f3b33a4c5957f638ae83df5e
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "zoraxy";
9   version = "3.0.7";
10   src = fetchFromGitHub {
11     owner = "tobychui";
12     repo = "zoraxy";
13     rev = "refs/tags/${version}";
14     sha256 = "sha256-fyhnP+MtX5dYR9yzIp7vpahJKbkuvopZSSTwt7JnaMI=";
15   };
17   sourceRoot = "${src.name}/src";
19   vendorHash = "sha256-FiE7j2XB6QcJBu1wtTpBCkfi0ac8pzx6RSOcVrsaOwQ=";
21   checkFlags =
22     let
23       # Skip tests that require network access
24       skippedTests = [
25         "TestExtractIssuerNameFromPEM"
26         "TestReplaceLocationHost"
27         "TestReplaceLocationHostRelative"
28         "TestHandleTraceRoute"
29         "TestHandlePing"
30       ];
31     in
32     [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
34   meta = {
35     description = "General purpose HTTP reverse proxy and forwarding tool written in Go";
36     homepage = "https://zoraxy.arozos.com/";
37     changelog = "https://github.com/tobychui/zoraxy/blob/v${version}/CHANGELOG.md";
38     license = lib.licenses.agpl3Only;
39     maintainers = [ lib.maintainers.luftmensch-luftmensch ];
40     mainProgram = "zoraxy";
41   };