From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: [PATCH 2/2] gnu: Add nyx. Date: Mon, 30 Jan 2017 06:13:06 +0000 Message-ID: <87zii9nki5.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> References: <20170130000904.31174-1-me@tobias.gr> <20170130000904.31174-2-me@tobias.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cY5Bw-0003vt-IL for guix-devel@gnu.org; Mon, 30 Jan 2017 01:11:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cY5Bs-0000K0-TK for guix-devel@gnu.org; Mon, 30 Jan 2017 01:11:52 -0500 Received: from fragranza.investici.org ([178.175.144.26]:58246) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cY5Bs-0000Hm-ID for guix-devel@gnu.org; Mon, 30 Jan 2017 01:11:48 -0500 In-Reply-To: <20170130000904.31174-2-me@tobias.gr> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Tobias Geerinckx-Rice , guix-devel@gnu.org Tobias Geerinckx-Rice writes: > * gnu/packages/tor.scm (nyx): New variable. > --- > > Guix, > > This adds Nyx (no relation), a handy status monitor for Tor relays. Cool! So it seems you have evaded the problems with the custom setup phase they have, which I ran into. Strange. But nice. > A 2.0 release has been just around the corner for... more than half a > year now, but the last 1.x version is from 2012. It also had an entirel= y > different name (=E2=80=98Arm=E2=80=99) and I'd rather not deal with the= confusion. > > This one has been nothing but stable for me, so I'd thought I'd share i= t. > > If we instead decide to wait another year for a =E2=80=98real=E2=80=99 = release, so be it. I think it's okay, take a look at this search and the reactions I got about it. https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=3Dnyx&submit=3DSea= rch&idxname=3Dguix-devel For the git commit you could mention that this used to be called "arm" and since then has been replaced by "nyx", see the comment Ludovic gave. > Kind regards, > > T G-R > > gnu/packages/tor.scm | 61 +++++++++++++++++++++++++++++++++++++++++++++= +++++++ > 1 file changed, 61 insertions(+) > > diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm > index 97e7ec9..b3b8238 100644 > --- a/gnu/packages/tor.scm > +++ b/gnu/packages/tor.scm > @@ -3,6 +3,7 @@ > ;;; Copyright =C2=A9 2014, 2015 Mark H Weaver > ;;; Copyright =C2=A9 2016 Efraim Flashner > ;;; Copyright =C2=A9 2016, 2017 ng0 > +;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -223,3 +224,63 @@ internet. The other user just needs to use Tor Br= owser to download the file > from you.") > (license (list license:gpl3+ > license:bsd-3)))) ; onionshare/socks.py > + > +(define-public nyx > + (let ((commit "fea209127484d9b304b908a4711c9528b1d065bc") > + (revision "1")) ; Guix package revision > + (package > + (name "nyx") > + (version (string-append "1.9-" revision "." > + (string-take commit 7))) > + (source > + (origin > + (method git-fetch) > + (file-name (string-append name "-" version "-checkout")) > + (uri (git-reference > + (url "https://git.torproject.org/nyx.git") > + (commit commit))) > + (sha256 > + (base32 > + "1g0l4988076xg5gs0x0nxzlg58rfx5g5agmklvyh4yp03vxncdb9")))) > + (build-system python-build-system) > + (native-inputs > + ;; For tests. I think this comment is not needed. > + `(("python-mock" ,python-mock) > + ("python-pep8" ,python-pep8) > + ("python-pyflakes" ,python-pyflakes))) > + (inputs > + `(("python-stem" ,python-stem))) > + (arguments > + `(#:configure-flags > + (list (string-append "--man-page=3D" > + (assoc-ref %outputs "out") > + "/share/man/man1/nyx.1") > + (string-append "--sample-path=3D" > + (assoc-ref %outputs "out") > + "/share/doc/nyx/nyxrc.sample")) > + #:use-setuptools? #f ; setup.py still uses distutil= s Sidecomment: Ah! That's the obvious error I failed to spot when I gave it= a try. > + #:phases > + (modify-phases %standard-phases > + (replace 'check > + (lambda _ I think the indendation is wrong here. > + (zero? (system* "./run_tests.py" "--unit"))))))) > + ;; There's no home page yet. This should change before the 2.0 = release. > + (home-page "https://gitweb.torproject.org/nyx.git") > + (synopsis "Tor relay status monitor") > + (description "Nyx monitors the performance of relays participati= ng in the > +@uref{https://www.torproject.org/, Tor anonymity network}. It display= s this > +information visually and in real time, using a curses-based terminal i= nterface. > +This makes Nyx well-suited for remote shell connections and servers wi= thout a > +graphical display. It's like @command{top} for Tor, providing detaile= d > +statistics and status reports on: > + > +@enumerate > +@item connections (with IP address, hostname, fingerprint, and consens= us data), > +@item bandwidth, processor, and memory usage, > +@item the relay's current configuration, > +@item logged events, > +@item and much more. > +@end enumerate > + > +Potential client and exit connections are scrubbed of sensitive inform= ation.") > + (license license:gpl3)))) > --=20 > 2.9.3 > > --=20 ng0 -- https://www.inventati.org/patternsinthechaos/