From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 27 16:12:05 2019 Received: (at submit) by debbugs.gnu.org; 27 Jun 2019 20:12:05 +0000 Received: from localhost ([127.0.0.1]:39804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgakW-0004u7-6j for submit@debbugs.gnu.org; Thu, 27 Jun 2019 16:12:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:33043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgakU-0004ts-FO for submit@debbugs.gnu.org; Thu, 27 Jun 2019 16:12:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41788) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgakS-0004KV-Hw for guix-patches@gnu.org; Thu, 27 Jun 2019 16:12:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgakQ-0008Sp-KQ for guix-patches@gnu.org; Thu, 27 Jun 2019 16:12:00 -0400 Received: from mx1.riseup.net ([198.252.153.129]:41428) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hgakO-0008Qe-Vs for guix-patches@gnu.org; Thu, 27 Jun 2019 16:11:57 -0400 Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 8BA701A02E4 for ; Thu, 27 Jun 2019 13:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1561666315; bh=c91S52gorg+zfxELVQdjs1Jd5BdDI4jZm9usL5vC+X4=; h=To:From:Subject:Date:From; b=gmiBoZxAWUc3SmpKCfjwmuphHDLdBaeZ/UtCBX1mM1KTJfUnQc+Of9qhFM/l6IJxt n6eTwyGJCkCg8C59b7e0ASsaDHT5+gF1FRx9+JZ6ZVJ+8JVoe8+jZW/IHsIsL/+hEy I5OCmSaPepY4vJNXOdRp6DE46GdFNCcdDCyegHwk= X-Riseup-User-ID: 2FBE7D43E9AC0B941E302A0F9025A9B527F8BF8D38D2A68677D24F7B953CE7CC Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id EE6381202BF for ; Thu, 27 Jun 2019 13:11:54 -0700 (PDT) To: guix-patches@gnu.org From: swedebugia Subject: [PATCH] gnu: Add bitcoin-abc. Message-ID: <7db680ab-ff53-9569-3835-dd28f4889b8e@riseup.net> Date: Thu, 27 Jun 2019 22:11:52 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------97C50CD4DED6324890B492C1" Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 198.252.153.129 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This is a multi-part message in MIME format. --------------97C50CD4DED6324890B492C1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I verified with the hash found here https://download.bitcoinabc.org/0.19.8/linux/bitcoin-abc-0.19-linux-res.yml I have not tested this with downloading the chain neither have I made any transactions. Warning: if you start it without specifying a datadir then it defaults to ~/.bitcoin like bitcoin-core. -- Cheers Swedebugia --------------97C50CD4DED6324890B492C1 Content-Type: text/x-patch; name="0001-gnu-Add-bitcoin-abc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-gnu-Add-bitcoin-abc.patch" From 1ce83b0ceabac0260f6a9dc43d4df1cc75236aa7 Mon Sep 17 00:00:00 2001 From: swedebugia Date: Thu, 27 Jun 2019 22:06:33 +0200 Subject: [PATCH] gnu: Add bitcoin-abc. * gnu/packages/finance.scm (bitcoin-abc): New variable. --- gnu/packages/finance.scm | 67 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index cd5d3b7d9..9301b5826 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -1029,3 +1029,70 @@ Its features are: @item get account amount. @end itemize") (license license:agpl3+))) + +(define-public bitcoin-abc + ;; This is a fork of bitcoin-core and identical to upstream. + (package + (name "bitcoin-abc") + (version "0.19.8") + (source (origin + (method url-fetch) + (uri + (string-append "https://download.bitcoinabc.org/" version "/linux/src/bitcoin-abc-" + version ".tar.gz")) + (sha256 + (base32 + "0ndvkxv5m8346bdhfqzgdiz1k9wyjycj05jp7daf9pml3cw79sz5")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("python" ,python) ; for the tests + ("util-linux" ,util-linux) ; provides the hexdump command for tests + ("qttools" ,qttools))) + (inputs + `(("bdb" ,bdb-5.3) ; with 6.2.23, there is an error: ambiguous overload + ("boost" ,boost) + ("libevent" ,libevent) + ("miniupnpc" ,miniupnpc) + ("openssl" ,openssl) + ("protobuf" ,protobuf) + ("qtbase" ,qtbase))) + (arguments + `(#:configure-flags + (list + ;; We use a bdb version newer than 4.8. + "--with-incompatible-bdb" + ;; Boost is not found unless specified manually. + (string-append "--with-boost=" + (assoc-ref %build-inputs "boost")) + ;; XXX: The configure script looks up Qt paths by + ;; `pkg-config --variable=host_bins Qt5Core`, which fails to pick + ;; up executables residing in 'qttools', so we specify them here. + (string-append "ac_cv_path_LRELEASE=" + (assoc-ref %build-inputs "qttools") + "/bin/lrelease") + (string-append "ac_cv_path_LUPDATE=" + (assoc-ref %build-inputs "qttools") + "/bin/lupdate")) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'make-qt-deterministic + (lambda _ + ;; Make Qt deterministic. + (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1") + #t)) + (add-before 'check 'set-home + (lambda _ + (setenv "HOME" (getenv "TMPDIR")) ; Tests write to $HOME. + #t))))) + (home-page "https://bitcoinabc.org/") + (synopsis "Bitcoin ABC peer-to-peer full node for the Bitcoin Cash protocol") + (description + "Bitcoin Cash is a digital currency that enables instant payments to anyone +anywhere in the world. It uses peer-to-peer technology to operate without +central authority: managing transactions and issuing money are carried out +collectively by the network. Bitcoin ABC is the reference implementation +of the Bitcoin Cash protocol. This package provides the Bitcoin Cash command +line client and a client based on Qt. This is a fork of bitcoin-core.") + (license license:expat))) + -- 2.19.2 --------------97C50CD4DED6324890B492C1--