guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 075ed5ed4b86dd421b758e0170383a0cdc7eb0ae
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Jul 10 08:47:12 2025 +0100
gnu: Add go-github-com-inetaf-tcpproxy.
* gnu/packages/golang-web.scm (go-github-com-inetaf-tcpproxy,
go-tlsrouter): New variables.
Change-Id: I25f64ce2bf34260a1400325b9aa15508826ca1f9
---
gnu/packages/golang-web.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 32a4dc134a..4c9b042f7c 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -4598,6 +4598,32 @@ protocol) - used to discover UPnP services on a network
@end itemize")
(license license:bsd-2)))
+(define-public go-github-com-inetaf-tcpproxy
+ (package
+ (name "go-github-com-inetaf-tcpproxy")
+ (version "0.0.0-20250222171855-c4b9df066048")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/inetaf/tcpproxy")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1m682wk8vs1pqiky2w4gmp8l1ysxlgsm7jw0dqd723mcaxkivy9p"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/inetaf/tcpproxy"))
+ (native-inputs
+ (list go-github-com-armon-go-proxyproto))
+ (home-page "https://github.com/inetaf/tcpproxy")
+ (synopsis "Proxy TCP connections based on static rules")
+ (description
+ "Package tcpproxy lets users build TCP proxies, optionally making routing
+decisions based on HTTP/1 Host headers and the SNI hostname in TLS
connections.")
+ (license license:asl2.0)))
+
(define-public go-github-com-jackpal-gateway
(package
(name "go-github-com-jackpal-gateway")
@@ -11616,6 +11642,23 @@ go-github-com-multiformats-go-multiaddr-dns.")))
(description "This package provides a CLI binary executable built from
go-github-com-tdewolff-minify-v2 source.")))
+(define-public go-tlsrouter
+ (package/inherit go-github-com-inetaf-tcpproxy
+ (name "go-tlsrouter")
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments go-github-com-inetaf-tcpproxy)
+ ((#:tests? _ #t) #f)
+ ((#:install-source? _ #t) #f)
+ ((#:import-path _) "github.com/inetaf/tcpproxy/cmd/tlsrouter")
+ ((#:unpack-path _ "") "github.com/inetaf/tcpproxy")))
+ (propagated-inputs '())
+ (inputs '())
+ (description
+ "TLSRouter is a TLS proxy that routes connections to backends based on
+the TLS @acronym{SNI, Server Name Indication} of the TLS handshake. It
+carries no encryption keys and cannot decode the traffic that it proxies.")))
+
(define-public gron
(package
(name "gron")