From patchwork Sat Feb 19 23:12:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Justin Veilleux X-Patchwork-Id: 37361 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 79A4F27BBEB; Sat, 19 Feb 2022 23:14:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8EA2627BBEA for ; Sat, 19 Feb 2022 23:14:13 +0000 (GMT) Received: from localhost ([::1]:60406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLYvc-00074H-MZ for patchwork@mira.cbaines.net; Sat, 19 Feb 2022 18:14:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLYvS-00073x-Od for guix-patches@gnu.org; Sat, 19 Feb 2022 18:14:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLYvS-0001H3-Eg for guix-patches@gnu.org; Sat, 19 Feb 2022 18:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLYvS-0003U3-2e for guix-patches@gnu.org; Sat, 19 Feb 2022 18:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54068] [PATCH] Add xmrig and p2pool Resent-From: Justin Veilleux Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Feb 2022 23:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54068 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54068@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164531238513306 (code B ref -1); Sat, 19 Feb 2022 23:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Feb 2022 23:13:05 +0000 Received: from localhost ([127.0.0.1]:58906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLYuT-0003SG-Dy for submit@debbugs.gnu.org; Sat, 19 Feb 2022 18:13:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:39442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLYuS-0003S0-2G for submit@debbugs.gnu.org; Sat, 19 Feb 2022 18:13:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLYuR-00071t-5D for guix-patches@gnu.org; Sat, 19 Feb 2022 18:12:59 -0500 Received: from [37.120.193.123] (port=40096 helo=mail.cock.li) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLYuK-0001Cv-GS for guix-patches@gnu.org; Sat, 19 Feb 2022 18:12:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1645312366; bh=LOrZz7Vd/1kqMWMQ7A22CwAf160j1+I2zxu9Iu0TvBE=; h=Date:To:From:Subject:From; b=Tf6yOyGq79E03RjGpkVivicPRcx9tbtmUZuxvxInXpNLO3SoSgXLyy35nAYhd7VEr tadowDKRDe5lCevYUlL9M+NV7RC9aD/O1xDsYtvHzVYgcWUwKeFpNJO3Zw1APIQIy5 hqbixWENYtF78/xG5h2eTrSuIrNxNQ1vZGTXr8TN+FnfkmPSDbOKV6EFC8UD2lvSN+ G37L7FFAvx1PUzIJmk5LDnPdiLGkOKyEKV2rb6tG5eJKDrvBvJNRCAluUs4dT6vk5N 9ANSnUpdIkoEyLXax2GSbFOLdC9S2HuLwUHBESuq80U5y10yX/l1nsXvvXzlFbJtQl z82BI/dO709Cg== Message-ID: <356b1509-0df9-6579-d440-95bc74c9f2e3@cock.li> Date: Sat, 19 Feb 2022 18:12:44 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US From: Justin Veilleux X-Host-Lookup-Failed: Reverse DNS lookup failed for 37.120.193.123 (failed) Received-SPF: pass client-ip=37.120.193.123; envelope-from=terramorpha@cock.li; helo=mail.cock.li X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Here are two patches to add, respectively, the xmrig monero mining software and p2pool, a decentralized mining pool. Cheers From 13e1d1b98f105b7c9d24735f7d05a6ec8b6b8e0b Mon Sep 17 00:00:00 2001 From: terramorpha Date: Sat, 19 Feb 2022 14:34:50 -0500 Subject: [PATCH 1/2] gnu: Add xmrig. * gnu/packages/finance.scm (xmrig): New variable. --- gnu/packages/finance.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 985eaa87f7..6d4e71ee24 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -26,6 +26,7 @@ ;;; Copyright © 2021 François J ;;; Copyright © 2021 Foo Chuan Wei ;;; Copyright © 2021 John Kehayias +;;; Copyright © 2022 Justin Veilleux ;;; ;;; This file is part of GNU Guix. ;;; @@ -93,6 +94,7 @@ (define-module (gnu packages finance) #:use-module (gnu packages linux) #:use-module (gnu packages man) #:use-module (gnu packages maths) + #:use-module (gnu packages mpi) #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages networking) @@ -857,6 +859,44 @@ (define-public monero-gui the Monero GUI client.") (license license:bsd-3))) +(define-public xmrig + (package + (name "xmrig") + (version "6.16.4") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/xmrig/xmrig") + (commit (string-append "v" version)))) + (sha256 (base32 "0mp7q14pfbdjvjai6nw6psqakr1hnzkkn4c51iw578866n2lmxw5")))) + (build-system cmake-build-system) + (inputs + (list + `(,hwloc "lib") + libuv + openssl)) + (arguments + (list + ;; There are no tests. + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (replace 'install + ;; There is no 'install' target, we must install xmrig manually + (lambda* (#:key outputs #:allow-other-keys) + (use-modules (guix build utils)) + (install-file "xmrig" (string-append (assoc-ref outputs "out") "/bin")) + #t))))) + (home-page "https://xmrig.com/") + (synopsis "XMR miner") + (description + "XMRig is a high performance, open source, cross platform +RandomX, KawPow, CryptoNight, AstroBWT and GhostRider unified CPU/GPU miner +and RandomX benchmark.") + (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