[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Add Tor client only package definition
From: |
Andre Batista |
Subject: |
[PATCH] Add Tor client only package definition |
Date: |
Sun, 17 May 2020 00:11:27 -0300 |
Hello Guix,
Starting on version 0.4.3.5, Tor provides a configuration flag to
disable relay code (--disable-module-relay). Considering most
people are running clients, not relays, I thought it would be
nice for guix to have a client-only package definition (maybe
it could even be the default?). What do you think?
I've tested the code below and it works as expected on my guix
install. However, since I'm neither a schemer nor guixpert, fell
free to teach me how to do it the guix way.
----
--- a/gnu/packages/tor.scm 2020-05-16 23:35:47.690031277 -0300
+++ b/gnu/packages/tor.scm 2020-05-16 23:47:11.291254106 -0300
@@ -91,6 +91,20 @@
the application layer) you need to install @code{torsocks}.")
(license license:bsd-3)))
+ (define-public tor-client
+ (package
+ (inherit tor)
+ (name "tor-client")
+ (arguments
+ `(#:configure-flags
+ `(,@(cons "--disable-module-relay"
+ ,(cadr (package-arguments tor))))))
+ (synopsis "Client to the anonymous Tor network")
+ (description
+ (string-append (package-description tor)
+ "\n\nThis package only provides the client funcionality to the Tor
+Network. If you want to setup a relay you need to install @code{tor}."))))
+
(define-public torsocks
(package
(name "torsocks")
signature.asc
Description: PGP signature
- [PATCH] Add Tor client only package definition,
Andre Batista <=