~ruther/guix-local

8782a08e1bf4c16c5724504819a1d6a63c185782 — Sharlatan Hellseher 10 months ago 961072c
gnu: Add wireproxy.

* gnu/packages/networking.scm (wireproxy): New variable.

Change-Id: Ib4601db6a721960a95fe8e5723864a6af20afc45
Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
1 files changed, 36 insertions(+), 0 deletions(-)

M gnu/packages/networking.scm
M gnu/packages/networking.scm => gnu/packages/networking.scm +36 -0
@@ 5247,3 5247,39 @@ recording packets that are dropped by the kernel.  It provides the commands
Protocol.  RDAP is modern a replacement for WHOIS, which provides domain name
and IP address registration information in JSON format over HTTP.")
    (license license:expat)))

(define-public wireproxy
  (package
    (name "wireproxy")
    (version "1.0.10")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/whyvl/wireproxy")
              (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0ypk9migx1l7xwcxr542pcdy8q2bm33wp03bqzgav0hp1fsrmi8p"))))
    (build-system go-build-system)
    (arguments
     (list
      #:install-source? #f
      #:import-path "github.com/pufferffish/wireproxy/cmd/wireproxy"
      #:unpack-path "github.com/pufferffish/wireproxy"
      #:test-subdirs #~(list "../../..."))) ;to test the whole module
    (native-inputs
     (list go-github-com-akamensky-argparse
           go-github-com-go-ini-ini
           go-github-com-landlock-lsm-go-landlock
           go-github-com-makenowjust-heredoc-v2
           go-github-com-things-go-go-socks5
           go-golang-org-x-net
           go-golang-zx2c4-com-wireguard
           go-suah-dev-protect))
    (home-page "https://github.com/whyvl/wireproxy")
    (synopsis "Wireguard client that exposes itself as a socks5 proxy")
    (description
     "wireproxy is a completely userspace application that connects to a
wireguard peer, and exposes a socks5/http proxy or tunnels on the machine.")
    (license license:isc)))