~ruther/guix-local

0fc08ce2bd8b59a12e6f100e8ff2d145d607e879 — Hennadii Stepanov 4 months ago d94438a
gnu: bitcoin-core: Improve package.

* gnu/packages/finance.scm (bitcoin-core)[arguments]
<#:configure-flags>: Remove -DENABLE_IPC=OFF.
<#:phases>: Remove the 'set-home phase. Add --timeout-factor=2 in the
'check-functional phase.
[inputs]: Add capnproto.

Change-Id: Iaab3f5d5da7e189ad8fd6c43fb236ec5d4a63444
Signed-off-by: Andreas Enge <andreas@enge.fr>
1 files changed, 4 insertions(+), 8 deletions(-)

M gnu/packages/finance.scm
M gnu/packages/finance.scm => gnu/packages/finance.scm +4 -8
@@ 139,6 139,7 @@
  #:use-module (gnu packages qt)
  #:use-module (gnu packages readline)
  #:use-module (gnu packages security-token)
  #:use-module (gnu packages serialization)
  #:use-module (gnu packages sphinx)
  #:use-module (gnu packages sqlite)
  #:use-module (gnu packages tex)


@@ 171,9 172,7 @@
           #~(list
              "-DBUILD_GUI=ON"
              "-DBUILD_BENCH=ON"
              "-DWITH_ZMQ=ON"
              ;; TODO: Enable IPC once capnproto is built with -fPIC.
              "-DENABLE_IPC=OFF")
              "-DWITH_ZMQ=ON")
           #:phases
           #~(modify-phases %standard-phases
               (add-before 'build 'set-no-git-flag


@@ 182,14 181,10 @@
                   ;; (and thus no information regarding this build is available
                   ;; from git).
                   (setenv "BITCOIN_GENBUILD_NO_GIT" "1")))
               (add-before 'check 'set-home
                 (lambda _
                   ;; Tests write to $HOME.
                   (setenv "HOME" (getenv "TMPDIR"))))
               (add-after 'check 'check-functional
                 (lambda _
                   (invoke
                    "python3" "./test/functional/test_runner.py"
                    "python3" "./test/functional/test_runner.py" "--timeout-factor=2"
                    (string-append "--jobs=" (number->string (parallel-job-count)))))))))
    (native-inputs
     (list bash ; provides the sh command for system_tests


@@ 200,6 195,7 @@
           qttools))
    (inputs
     (list boost
           capnproto
           libevent
           qrencode
           qtbase