From 912cc0657b3de6eca9771f11b6bdade0fa24ddcc Mon Sep 17 00:00:00 2001 From: terramorpha Date: Sat, 19 Feb 2022 18:07:42 -0500 Subject: [PATCH 2/2] gnu: Add p2pool. * gnu/packages/finance.scm (p2pool): New variable. --- gnu/packages/finance.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 6d4e71ee24..ae344f010c 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -82,6 +82,7 @@ (define-module (gnu packages finance) #:use-module (gnu packages gnupg) #:use-module (gnu packages graphviz) #:use-module (gnu packages groff) + #:use-module (gnu packages gsasl) #:use-module (gnu packages gtk) #:use-module (gnu packages haskell-check) #:use-module (gnu packages haskell-web) @@ -897,6 +898,41 @@ (define-public xmrig and RandomX benchmark.") (license license:gpl3))) +(define-public p2pool + (package + (name "p2pool") + (version "1.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/SChernykh/p2pool") + (commit (string-append "v" version)) + (recursive? #t))) + (sha256 (base32 "0jxl7j8x4nc65c8mdilifqy1gz1881g3qmmi48wvpciv8pbw45x2")))) + (build-system cmake-build-system) + (arguments + (list + ;; There are no tests. + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-p2pool + ;; The 'install' target forgets to install the binary + (lambda* (#:key outputs #:allow-other-keys) + (use-modules (guix build utils)) + (install-file "p2pool" (string-append (assoc-ref outputs "out") "/bin")) + #t))))) + (inputs + (list libuv zeromq gss)) + (home-page "https://p2pool.io/") + (synopsis "Decentralized Monero mining pool") + (description "Monero P2Pool is a peer-to-peer Monero mining pool. P2Pool +combines the advantages of pool and solo mining; you still fully control your +Monero node and what it mines, but you get frequent payouts like on a regular +pool.") + (license license:gpl3))) + (define-public python-trezor-agent ;; It is called 'libagent' in pypi; i.e. this is the library as opposed to ;; the toplevel app called trezor-agent. -- 2.34.0