mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 21:24:03 +00:00
Merge pull request #312849 from luftmensch-luftmensch/zoraxy_3.0.4
This commit is contained in:
commit
014958cd8d
42
pkgs/by-name/zo/zoraxy/package.nix
Normal file
42
pkgs/by-name/zo/zoraxy/package.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "zoraxy";
|
||||
version = "3.0.5";
|
||||
src = fetchFromGitHub {
|
||||
owner = "tobychui";
|
||||
repo = "zoraxy";
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "sha256-bTd6IwzVYxs1xvoy7AdB7WTGfgtHJI+qM3335OWkOEo=";
|
||||
};
|
||||
|
||||
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 = "A 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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user