From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6Ay0HuAlaWRhLgEASxT56A (envelope-from ) for ; Sat, 20 May 2023 21:56:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cMwTHuAlaWQ4fgEAauVa8A (envelope-from ) for ; Sat, 20 May 2023 21:56:16 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 08F1E979A for ; Sat, 20 May 2023 21:56:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0SgO-0001dC-Hu; Sat, 20 May 2023 15:56:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0SgM-0001d2-JN for guix-patches@gnu.org; Sat, 20 May 2023 15:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0SgM-0002CS-Bm for guix-patches@gnu.org; Sat, 20 May 2023 15:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0SgM-0003hJ-0G for guix-patches@gnu.org; Sat, 20 May 2023 15:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63615] [PATCH 1/2] gnu: xmrig: Run 'guix style' over the package. Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 May 2023 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63615 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63615@debbugs.gnu.org Cc: Ahmad Draidi Received: via spool by 63615-submit@debbugs.gnu.org id=B63615.168461255814203 (code B ref 63615); Sat, 20 May 2023 19:56:01 +0000 Received: (at 63615) by debbugs.gnu.org; 20 May 2023 19:55:58 +0000 Received: from localhost ([127.0.0.1]:59412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0SgH-0003h0-Tk for submit@debbugs.gnu.org; Sat, 20 May 2023 15:55:58 -0400 Received: from rainycloud.ext.redscript.org ([103.105.48.212]:55830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0SgG-0003gn-9f for 63615@debbugs.gnu.org; Sat, 20 May 2023 15:55:57 -0400 Received: from localhost.localdomain (bba-92-97-101-171.alshamil.net.ae [92.97.101.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rainycloud.ext.redscript.org (Postfix) with ESMTPSA id 363E1844E; Sat, 20 May 2023 19:55:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-rsa; t=1684612550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a8LgNmfiF+/puOH4DuTnzNC/JRa4djqxPAWU49IM3Uo=; b=vz3AQiR9Mb7r4aW7q3R7Hscb7/S7bLEJ29LL3/KYgu4KNcKHfvKcEv1xFZk8FRa9tMG1mb ytb1wPaH8+abq0SZug5+b8o+m84OkMgg2+AhIzZAvot+AJz5DghE5PO7hiDwJVCIlM+F7v ys8VxKSSGcUWXEmpER/vw0UYKK7IGfcHNEBdZdjUb1h96HjAa002pmY4aW9ocyKIVnyzRT EpTTk+a/NlarSMMgx+77JyCadO0jgLIf8B7+xHBtcKEhcOTf72rqqCCESuTevMsyT+HKHH TxtMAEDfS2Y7jCFC9bRM5IbmgYrr6GsIKmjhD5tHS0m9rmDAD1SAK5y8bqJntuhEbuEQ8C vJu1ycq86/KDc+DFpwM693l3eAHnOmF3aJ9V9HnUnE14DW9IqEvcW72JWufGD+WUt3IW9F 8zv40ZcyHdNLje5q0ABhggImF05TkzSc0F72sJRbEMAD0JILB8plQYZ4HhHexALgB+VB7l WU1/nov6ODb9eUms7I34YdGW9Mut3KDnzdFX/VZLpwc+3aBbpeTNcq85rRk6GNoNT00dVw Qc8eET3xiP1iv9bfL4NcuXVo8q+/G4rlZzjCxGZF+Fu/ynRDWveFvyyepJVLELT7Mff2mA gcmrltisMkQxmW3mmA4l10GTQG0A8uzIm/UbfnUj3Xmid7dJJG2pM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-ed25519; t=1684612550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a8LgNmfiF+/puOH4DuTnzNC/JRa4djqxPAWU49IM3Uo=; b=XBcA089cHQcl7qXYXiBOmJbAFW9rT7mY6fhI8LXPB9pakyM6I4kYlUPyRJC+3MiCSHrTOG YtckAC6pk9MRNBDg== Date: Sat, 20 May 2023 23:55:04 +0400 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Reply-to: Ahmad Draidi X-ACL-Warn: , Ahmad Draidi via Guix-patches From: Ahmad Draidi via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684612576; a=rsa-sha256; cv=none; b=G8RvBQXTzx88UY/NdPSKUPlknzG/gd4ULzjNq1xLJZvNwZElQe+S1nmdFlP2hnkLEKMELn rPXq8ebmxprBLh5PRv97i/BkjoV80uVbb8ugJy4gqI3A1yxwpA/ngiKoROigDibPWAYD0d 8vdovIlUsZa3v/SQlw19w4nf/1B1Wmfi6EVpr5nKfCnmFoBok5qStSVvJBRfx3MAVQNMXQ 2ZfdpXBdcJmr68rA9rhlDpyv4SVY9nNbLNbG/XJklo7l6y8HzNrE7bvPGZWRC+Wy3++UJ0 BYbn31tqT7Ny7WA0yrjsQHaq0+B89RFPLIqDUk9F4mLtMq8X+Xiz3jZw15Tppw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=redscript.org header.s=mail1-rsa header.b=vz3AQiR9; dkim=fail ("headers eddsa verify failed") header.d=redscript.org header.s=mail1-ed25519 header.b=XBcA089c; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684612576; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=a8LgNmfiF+/puOH4DuTnzNC/JRa4djqxPAWU49IM3Uo=; b=HG1s4+7GeIDskaCcxAwxbD3rPNURYQwQUv//NSnzY5Q31kk//P6CQdauQ3EK5et3Bmoggo xAQdFTeouBIecIHfELYqSd4C6GXFJfwU6BC27To1pUQIcFSUAkq5uaKIlEkutarY9+W0uz QCfCwLLJe7f1hov+b3F6QuOARP1l4bFcaROvTvGAEfMftFbOuX8nzAjhmNbT4WWclEp0UL gvicxRJc9/tgFx4VAFIY/1M1OkcBY6SKuALnZd3oCRxxb8l76w6Ed45xPFmYBSeeoawxR6 bHwOggPx8IGBnOl3RKTrEO+swH9Jhs+x7LXG54a8ynV9jFSKQeyGGBjc7IPLdw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=redscript.org header.s=mail1-rsa header.b=vz3AQiR9; dkim=fail ("headers eddsa verify failed") header.d=redscript.org header.s=mail1-ed25519 header.b=XBcA089c; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.68 X-Spam-Score: -1.68 X-Migadu-Queue-Id: 08F1E979A X-TUID: prAtqDee6mSe * gnu/packages/finance.scm (xmrig): Restyle. --- gnu/packages/finance.scm | 61 ++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 33 deletions(-) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 559b22257b..71d80bd081 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -2266,44 +2266,39 @@ (define-public xmrig (package (name "xmrig") (version "6.19.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/xmrig/xmrig") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 (base32 "10vaq6ld4sddnpmv9dg71fjvw1jrfaddrp3bq6p3dxhsl153khm4")) - (modules '((guix build utils))) - (snippet - ;; TODO: Try to use system libraries instead of bundled ones in - ;; "src/3rdparty/". It requires changes to some "cmake/..." scripts - ;; and to some source files. - #~(begin - (delete-file-recursively "src/3rdparty/hwloc") - (substitute* "src/donate.h" - (("constexpr const int kDefaultDonateLevel = 1;") - "constexpr const int kDefaultDonateLevel = 0;") - (("constexpr const int kMinimumDonateLevel = 1;") - "constexpr const int kMinimumDonateLevel = 0;")))))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xmrig/xmrig") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "10vaq6ld4sddnpmv9dg71fjvw1jrfaddrp3bq6p3dxhsl153khm4")) + (modules '((guix build utils))) + (snippet + ;; TODO: Try to use system libraries instead of bundled ones in + ;; "src/3rdparty/". It requires changes to some "cmake/..." scripts + ;; and to some source files. + #~(begin + (delete-file-recursively "src/3rdparty/hwloc") + (substitute* "src/donate.h" + (("constexpr const int kDefaultDonateLevel = 1;") + "constexpr const int kDefaultDonateLevel = 0;") + (("constexpr const int kMinimumDonateLevel = 1;") + "constexpr const int kMinimumDonateLevel = 0;")))))) (build-system cmake-build-system) - (inputs - (list - `(,hwloc "lib") - libuv - openssl)) + (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 #:allow-other-keys) - (install-file "xmrig" - (string-append #$output "/bin"))))))) + #:phases #~(modify-phases %standard-phases + (replace 'install + ;; There is no 'install' target, we must install xmrig manually + (lambda* (#:key #:allow-other-keys) + (install-file "xmrig" + (string-append #$output "/bin"))))))) (home-page "https://xmrig.com/") (synopsis "Monero miner") (description -- 2.40.1