From 1f9a0911707c3cbb225ba6b5e7d71b050a111720 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 27 May 2025 09:57:10 +0100 Subject: gnu: Add go-obfs4proxy. Fixes . * gnu/packages/golang-crypto.scm (go-obfs4proxy): New variable. Change-Id: I318e757e3d2eaaba818f28277559e65ab87c910b --- gnu/packages/golang-crypto.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index 84b08cf414..41bc7ad963 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -3096,6 +3096,35 @@ tools.")))) " This package provides an command line interface (CLI) tool.")))) +(define-public go-obfs4proxy + (package/inherit go-github-com-operatorfoundation-obfs4 + (name "go-obfs4proxy") + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-operatorfoundation-obfs4) + ((#:tests? _ #t) #f) + ((#:skip-build? _ #t) #f) + ((#:install-source? _ #t) #f) + ((#:import-path _) "github.com/OperatorFoundation/obfs4/obfs4proxy") + ((#:unpack-path _ "") "github.com/OperatorFoundation/obfs4") + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'install 'install-man-pages + (lambda* (#:key unpack-path #:allow-other-keys) + (let ((man-out (string-append #$output "/man/man1/")) + (man-src (string-append "src/" unpack-path "/doc/obfs4proxy.1"))) + (install-file man-src man-out)))))))) + (native-inputs (package-propagated-inputs go-github-com-operatorfoundation-obfs4)) + (propagated-inputs '()) + (inputs '()) + (synopsis "Pluggable transport proxy for Tor, implementing obfs4") + (description + "obfs4proxy is a tool that attempts to circumvent censorship by +transforming the Tor traffic between the client and the bridge. This way +censors, who usually monitor traffic between the client and the bridge, will +see innocent-looking transformed traffic instead of the actual Tor +traffic."))) + (define-public ssh-to-pgp (package (name "ssh-to-pgp") -- cgit v1.2.3