;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
-;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2018 Adriano Peluso <catonano@gmail.com>
;;; Copyright © 2018, 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2020 Christopher Lemmer Webber <cwebber@dustycloud.org>
;;; Copyright © 2020 Tom Zander <tomz@freedommail.ch>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2020 Carlo Holl <carloholl@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
#:use-module (guix build-system cmake)
#:use-module (guix build-system copy)
#:use-module (guix build-system emacs)
+ #:use-module (guix build-system haskell)
#:use-module (guix build-system python)
#:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system go)
#:use-module (gnu packages graphviz)
#:use-module (gnu packages groff)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages haskell-check)
+ #:use-module (gnu packages haskell-web)
+ #:use-module (gnu packages haskell-xyz)
+ #:use-module (gnu packages jemalloc)
#:use-module (gnu packages libedit)
#:use-module (gnu packages libevent)
#:use-module (gnu packages libunwind)
#:use-module (gnu packages time)
#:use-module (gnu packages tls)
#:use-module (gnu packages upnp)
- #:use-module (gnu packages version-control)
#:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module (gnu packages gnuzilla))
line client and a client based on Qt.")
(license license:expat)))
+(define-public hledger
+ (package
+ (name "hledger")
+ (version "1.19.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://hackage.haskell.org/package/hledger/hledger-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0wfsyf2q1kf90mj3lxs0m5ghj153axmpkc8xfy12vkz5imnyphfm"))))
+ (build-system haskell-build-system)
+ (inputs
+ `(("ghc-decimal" ,ghc-decimal)
+ ("ghc-diff" ,ghc-diff)
+ ("ghc-aeson" ,ghc-aeson)
+ ("ghc-ansi-terminal" ,ghc-ansi-terminal)
+ ("ghc-base-compat-batteries" ,ghc-base-compat-batteries)
+ ("ghc-cmdargs" ,ghc-cmdargs)
+ ("ghc-data-default" ,ghc-data-default)
+ ("ghc-extra" ,ghc-extra)
+ ("ghc-hashable" ,ghc-hashable)
+ ("ghc-hledger-lib" ,ghc-hledger-lib)
+ ("ghc-lucid" ,ghc-lucid)
+ ("ghc-math-functions" ,ghc-math-functions)
+ ("ghc-megaparsec" ,ghc-megaparsec)
+ ("ghc-old-time" ,ghc-old-time)
+ ("ghc-pretty-show" ,ghc-pretty-show)
+ ("ghc-regex-tdfa" ,ghc-regex-tdfa)
+ ("ghc-safe" ,ghc-safe)
+ ("ghc-shakespeare" ,ghc-shakespeare)
+ ("ghc-split" ,ghc-split)
+ ("ghc-tabular" ,ghc-tabular)
+ ("ghc-tasty" ,ghc-tasty)
+ ("ghc-temporary" ,ghc-temporary)
+ ("ghc-timeit" ,ghc-timeit)
+ ("ghc-unordered-containers" ,ghc-unordered-containers)
+ ("ghc-utf8-string" ,ghc-utf8-string)
+ ("ghc-utility-ht" ,ghc-utility-ht)
+ ("ghc-wizards" ,ghc-wizards)))
+ (home-page "https://hledger.org")
+ (synopsis "Command-line interface for the hledger accounting system")
+ (description
+ "The command-line interface for the hledger accounting system. Its basic
+function is to read a plain text file describing financial transactions and
+produce useful reports.
+
+hledger is a robust, cross-platform set of tools for tracking money, time, or
+any other commodity, using double-entry accounting and a simple, editable file
+format, with command-line, terminal and web interfaces. It is a Haskell
+rewrite of Ledger, and one of the leading implementations of Plain Text
+Accounting.")
+ (license license:gpl3)))
+
(define-public homebank
(package
(name "homebank")
- (version "5.2.8")
+ (version "5.4.3")
(source (origin
(method url-fetch)
(uri (string-append "http://homebank.free.fr/public/homebank-"
version ".tar.gz"))
(sha256
(base32
- "13ampiv68y30kc0p2560g3yz8whqpwnidfcnb9lndv93b9ca767y"))))
+ "02wd569viwy6ncy0144z9nxr3zmpl4shkqhz7zzwyky4gknxf8lj"))))
(build-system glib-or-gtk-build-system)
(native-inputs
`(("pkg-config" ,pkg-config)
("intltool" ,intltool)))
(inputs
`(("gtk+" ,gtk+)
+ ("libofx" ,libofx)
("libsoup" ,libsoup)))
- (arguments
- `(#:configure-flags (list "-without-ofx"))) ; libofx is not available yet
(home-page "http://homebank.free.fr/")
(synopsis "Graphical personal accounting application")
(description "HomeBank allows you to manage your personal accounts at
(define-public ledger
(package
(name "ledger")
- (version "3.2.0")
+ (version "3.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/ledger/ledger.git")
+ (url "https://github.com/ledger/ledger")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1l5c9jf2wnly6ncm9civ8i7v47xld15g1y7wpl0hqwgbfyffwjci"))))
+ (base32 "0x6jxwss3wwzbzlwmnwb8yzjk8f9wfawif4f1b74z2qg6hc4r7f6"))))
(build-system cmake-build-system)
(arguments
`(#:modules (,@%cmake-build-system-modules
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/ledger/ledger-mode.git")
+ (url "https://github.com/ledger/ledger-mode")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/stesie/geierlein.git")
+ (url "https://github.com/stesie/geierlein")
(commit (string-append "V" version))))
(file-name (git-file-name name version))
(sha256
("python-dnspython" ,python-dnspython)
("python-jsonrpclib-pelix" ,python-jsonrpclib-pelix)))
(arguments
- `(#:tests? #f ;; package doesn't have any tests
+ `(#:tests? #f ; no tests
#:phases
(modify-phases %standard-phases
- (add-before 'build 'patch-home
+ (add-after 'unpack 'fix-prefix
(lambda* (#:key outputs #:allow-other-keys)
- (substitute* "setup.py"
- (("~/.local/share")
- (string-append (assoc-ref outputs "out") "/local/share"))))))))
+ (let ((out (assoc-ref outputs "out")))
+ ;; setup.py installs to ~/.local/share if sys.prefix/share isn't
+ ;; writable. sys.prefix points to Python's, not our, --prefix.
+ (mkdir-p (string-append out "/share"))
+ (substitute* "setup.py"
+ (("sys\\.prefix")
+ (format #f "\"~a\"" out)))
+ #t))))))
(home-page "https://electrum.org/")
(synopsis "Bitcoin wallet")
(description
(define-public electron-cash
(package
(name "electron-cash")
- (version "4.0.14")
+ (version "4.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/Electron-Cash/Electron-Cash.git")
+ (url "https://github.com/Electron-Cash/Electron-Cash")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1dp7cj1185h6xfz6jzh0iq58zvg3wq9hl96bkgxkf5h4ygni2vm6"))))
+ (base32 "1fllz2s20lg4hrppzmnlgjy9mrq7gaq66l2apb3vz1avzvsjw3gm"))))
(build-system python-build-system)
(inputs
`(("libevent" ,libevent)
- ("libsecp256k1", libsecp256k1)
+ ("libsecp256k1" ,libsecp256k1-bitcoin-cash)
("openssl" ,openssl)
("python-cython" ,python-cython)
- ("python-dateutil", python-dateutil)
+ ("python-dateutil" ,python-dateutil)
("python-dnspython" ,python-dnspython)
("python-ecdsa" ,python-ecdsa)
("python-hidapi" ,python-hidapi)
("qtsvg" ,qtsvg)
("zlib" ,zlib)))
(arguments
- `(#:tests? #f ; No tests
+ `(#:tests? #f ; no tests
#:modules ((guix build python-build-system)
(guix build qt-utils)
(guix build utils))
(guix build qt-utils))
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'patch-home
+ (add-after 'unpack 'create-output-directories
(lambda* (#:key outputs #:allow-other-keys)
- (substitute* "setup.py"
- (("~/.local/share")
- (string-append (assoc-ref outputs "out") "/local/share")))))
+ ;; setup.py installs to ~/.local/share if this doesn't exist.
+ (mkdir-p (string-append (assoc-ref outputs "out") "/share"))
+ #t))
(add-after 'unpack 'use-libsecp256k1-input
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "lib/secp256k1.py"
(("library_paths = .* 'libsecp256k1.so.0'.")
- (string-append "library_paths = ('" (assoc-ref inputs "libsecp256k1") "/lib/libsecp256k1.so.0'")))))
+ (string-append "library_paths = ('"
+ (assoc-ref inputs "libsecp256k1")
+ "/lib/libsecp256k1.so.0'")))
+ #t))
(add-after 'install 'wrap-qt
(lambda* (#:key outputs #:allow-other-keys)
(wrap-qt-program (assoc-ref outputs "out") "electron-cash")
;; the system's dynamically linked library.
(package
(name "monero")
- (version "0.16.0.0")
+ (version "0.17.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/monero-project/monero.git")
+ (url "https://github.com/monero-project/monero")
(commit (string-append "v" version))
(recursive? #t)))
(file-name (git-file-name name version))
"external/unbound"))
#t))
(sha256
- (base32
- "0x74h5z0nxxxip97ibc854pqmrgd8r4d6w62m424f66i8gbzfskh"))))
+ (base32 "18x27dm24k04vx0yz57zi02rk0wrmbn4wr8alqf48dq6z9wr0fhp"))))
(build-system cmake-build-system)
(native-inputs
`(("doxygen" ,doxygen)
- ("git" ,git)
("graphviz" ,graphviz)
("pkg-config" ,pkg-config)
("protobuf" ,protobuf)
#:configure-flags
(list "-DARCH=default"
"-DBUILD_TESTS=ON"
- "-DBUILD_GUI_DEPS=ON"
(string-append "-DReadline_ROOT_DIR="
(assoc-ref %build-inputs "readline")))
#:phases
(invoke "tests/unit_tests/unit_tests"
(string-append "--gtest_filter=-"
excluded-unit-tests)))))
- (add-after 'install 'install-librandomx
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
- (install-file "external/randomx/librandomx.a" lib)
- #t)))
- (add-after 'install 'delete-dead-links
+ (add-after 'install 'delete-unused-files
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
- (delete-file (string-append out "/lib/libprotobuf.so"))
- (delete-file (string-append out "/lib/libusb-1.0.so"))
- #t))))))
+ (delete-file-recursively (string-append out "/include")))
+ #t)))))
(home-page "https://web.getmonero.org/")
(synopsis "Command-line interface to the Monero currency")
(description
(define-public monero-gui
(package
(name "monero-gui")
- (version "0.16.0.0")
+ (version "0.17.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/monero-project/monero-gui.git")
+ (url "https://github.com/monero-project/monero-gui")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32
- "06vdrsj5y9k0zn32hspyxc7sw1kkyrvi3chzkdbnxk9jvyj8k4ld"))))
+ (base32 "0aqhp4rmqsgwjb875kgh6qwz0wyyiag1fksyic9cnhgg5j5y95nx"))))
(build-system qt-build-system)
(native-inputs
- `(("monero-source" ,(package-source monero))
- ("pkg-config" ,pkg-config)
- ("qttools" ,qttools)))
+ `(,@(package-native-inputs monero)
+ ("monero-source" ,(package-source monero))))
(inputs
- `(("boost" ,boost)
- ("hidapi" ,hidapi)
+ `(,@(package-inputs monero)
("libgcrypt" ,libgcrypt)
- ("libsodium" ,libsodium)
- ("libunwind" ,libunwind)
- ("libusb" ,libusb)
- ("openssl" ,openssl)
- ("protobuf" ,protobuf)
+ ("monero" ,monero)
("qtbase" ,qtbase)
("qtdeclarative" ,qtdeclarative)
("qtgraphicaleffects" ,qtgraphicaleffects)
("qtquickcontrols" ,qtquickcontrols)
("qtquickcontrols2",qtquickcontrols2)
("qtsvg" ,qtsvg)
- ("qtxmlpatterns" ,qtxmlpatterns)
- ("unbound" ,unbound)))
- (propagated-inputs
- `(("monero" ,monero)))
+ ("qtxmlpatterns" ,qtxmlpatterns)))
(arguments
`(#:tests? #f ; No tests
+ #:configure-flags
+ (list "-DARCH=default"
+ "-DENABLE_PASS_STRENGTH_METER=ON"
+ (string-append "-DReadline_ROOT_DIR="
+ (assoc-ref %build-inputs "readline"))
+ "-DCMAKE_BUILD_TYPE=Release")
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'get-monero-extra-files
- ;; Some headers and GnuPG public keys of the monero package source
- ;; code are required to build the GUI.
+ (add-after 'unpack 'extract-monero-sources
+ ;; Some of the monero package source code is required
+ ;; to build the GUI.
(lambda* (#:key inputs #:allow-other-keys)
- (invoke "tar" "-xv" "--wildcards" "--strip-components=1"
+ (invoke "tar" "-xv" "--strip-components=1"
"-C" "monero"
- "-f" (assoc-ref inputs "monero-source")
- "*.asc" "*.h")
+ "-f" (assoc-ref inputs "monero-source"))
#t))
- (add-after 'get-monero-extra-files 'fix-makefile-vars
+ (add-after 'extract-monero-sources 'fix-build
(lambda _
+ (substitute* "monero/src/version.cpp.in"
+ (("@VERSION_IS_RELEASE@")
+ "false"))
+ (substitute* "src/version.js.in"
+ (("@VERSION_TAG_GUI@")
+ ,version))
(substitute* "src/zxcvbn-c/makefile"
(("\\?=") "="))
#t))
- (add-after 'fix-makefile-vars 'fix-paths
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((boost (assoc-ref inputs "boost"))
- (monero (assoc-ref inputs "monero"))
- (openssl (assoc-ref inputs "openssl"))
- (qttools (assoc-ref inputs "qttools"))
- (out (assoc-ref outputs "out")))
- (substitute* "monero-wallet-gui.pro"
- (("-L/usr/local/lib")
- "")
- (("-L/usr/local/opt/openssl/lib")
- (string-append "-L" openssl "/lib"))
- (("-L/usr/local/opt/boost/lib")
- (string-append "-L" boost "/lib"))
- (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
- (string-append qttools "/bin/lrelease"))
- (("\\$\\$\\[QT_INSTALL_BINS\\]/lupdate")
- (string-append qttools "/bin/lupdate")))
- (substitute* "deployment.pri"
- (("/opt/\\$\\$\\{TARGET\\}/bin")
- (string-append out "/bin")))
- (substitute* "src/daemon/DaemonManager.cpp"
- (("QApplication::applicationDirPath\\(\\) \\+ \"/monerod")
- (string-append "\"" monero "/bin/monerod")))
- #t)))
- (add-after 'fix-paths 'make-qt-deterministic
- (lambda _
- (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
- #t))
- (add-after 'make-qt-deterministic 'fix-version
+ (add-before 'configure 'generate-zxcvbn-c-header
(lambda _
- (substitute* "build.sh"
- (("echo .*> version.js")
- ""))
- (with-output-to-file "version.js"
- (lambda _
- (format #t
- "var GUI_VERSION = \"~a\"~@
- var GUI_MONERO_VERSION = \"~a\"~%"
- ,version
- ,(package-version monero))))
+ (invoke "make" "-C" "src/zxcvbn-c" "dict-src.h")))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
+ (mkdir-p bin)
+ (install-file "../build/bin/monero-wallet-gui" bin))
#t))
- (replace 'configure
- (lambda _
- (mkdir-p "build")
- (chdir "build")
- (invoke "qmake" "../monero-wallet-gui.pro" "CONFIG+=release")))
- (add-before 'build 'build-zxcvbn-c
- (lambda _
- (invoke "make" "-C" "../src/zxcvbn-c"))))))
+ (add-after 'qt-wrap 'install-monerod-link
+ ;; The monerod program must be available so that monero-wallet-gui
+ ;; can start a Monero daemon if necessary.
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (symlink (string-append (assoc-ref inputs "monero")
+ "/bin/monerod")
+ (string-append (assoc-ref outputs "out")
+ "/bin/monerod"))
+ #t)))))
(home-page "https://web.getmonero.org/")
(synopsis "Graphical user interface for the Monero currency")
(description
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/romanz/trezor-agent.git")
+ (url "https://github.com/romanz/trezor-agent")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(define-public python-trezor
(package
(name "python-trezor")
- (version "0.12.0")
+ (version "0.12.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "trezor" version))
(sha256
- (base32
- "0ycmpwjv5xp25993divjhaq5j766zgcy22xx39xfc1pcvldq5g7n"))))
+ (base32 "1w19m9lws55k9sjhras47hpfpqwq1jm5vy135nj65yhkblygqg19"))))
(build-system python-build-system)
(propagated-inputs
`(("python-click" ,python-click)
(inputs
`(("python-ledgerblue" ,python-ledgerblue)
("python-trezor-agent" ,python-trezor-agent)))
- (home-page "http://github.com/romanz/trezor-agent")
+ (home-page "https://github.com/romanz/trezor-agent")
(synopsis "Ledger as hardware SSH/GPG agent")
(description "This package allows using Ledger as hardware SSH/GPG agent.
(inputs
`(("python-keepkey" ,python-keepkey)
("python-trezor-agent" ,python-trezor-agent)))
- (home-page "http://github.com/romanz/trezor-agent")
+ (home-page "https://github.com/romanz/trezor-agent")
(synopsis "KeepKey as hardware SSH/GPG agent")
(description "This package allows using KeepKey as a hardware SSH/GPG
agent.")
(define-public python-stdnum
(package
(name "python-stdnum")
- (version "1.13")
+ (version "1.14")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-stdnum" version))
(sha256
- (base32
- "0q4128rjdgavywhzlm2gz2n5ybc9b9sxs81g50dvxf5q7z9q63qj"))))
+ (base32 "070vd9zgvq0jchs4xc4j1h4r1l1lg4wwb8xs3p25k8c2xjw94fpx"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(invoke "nosetests"))))))
(native-inputs
`(("python-nose" ,python-nose)))
- (home-page
- "https://arthurdejong.org/python-stdnum/")
- (synopsis
- "Python module to handle standardized number and code formats")
+ (home-page "https://arthurdejong.org/python-stdnum/")
+ (synopsis "Python module to handle standardized number and code formats")
(description
"This is a Python library that aims to provide functions to handle,
parse and validate standard numbers.
personal identity and company identification codes,
international standard numbers (ISBN, IBAN, EAN, etc.)
and various other formats.
-The module also inclused implementations of the Verhoeff,
+The module also includes implementations of the Verhoeff,
Luhn and family of ISO/IEC 7064 check digit algorithms. ")
(license license:lgpl2.1+)))
(define-public python-duniterpy
(package
(name "python-duniterpy")
- (version "0.57.0")
+ (version "0.60.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "duniterpy" version))
(sha256
- (base32 "0rw2c7r9gcqhymp82gbk1ky45zqbypsi2q5x4vdwjc6g00kh7h6l"))))
+ (base32 "0djn6ykmqbp8l2xbg6z8r7rkz9ijgygp2pr0gc6i7dsrlsqmjh32"))))
(build-system python-build-system)
(arguments
- ;; FIXME: Tests fail with: "ModuleNotFoundError: No module named
- ;; 'tests'". Not sure how to handle this.
- `(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- ;; "setup.py" tries to open missing "requirements.txt".
- (add-after 'unpack 'ignore-missing-file
- (lambda _
- (substitute* "setup.py"
- (("open\\('requirements\\.txt'\\)") "[]"))
- #t)))))
+ ;; FIXME: Tests fail with: "TypeError: block_uid() missing 1 required
+ ;; positional argument: 'value'".
+ `(#:tests? #f))
(propagated-inputs
`(("aiohttp" ,python-aiohttp)
("attrs" ,python-attrs)
(inputs
`(("click" ,python-click)
("duniterpy" ,python-duniterpy)
- ("ipaddress" ,python-ipaddress)
("pynacl" ,python-pynacl)
("tabulate" ,python-tabulate)
("texttable" ,python-texttable)))
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/trezor/trezor-common.git")
+ (url "https://github.com/trezor/trezor-common")
(commit commit)))
(sha256
(base32
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/trezor/trezord-go.git")
+ (url "https://github.com/trezor/trezord-go")
(commit (string-append "v" version))))
(sha256
(base32
(define-public bitcoin-abc
(package
(name "bitcoin-abc")
- (version "0.21.6")
+ (version "0.21.12")
(source (origin
(method url-fetch)
(uri (string-append "https://download.bitcoinabc.org/"
version ".tar.gz"))
(sha256
(base32
- "1w3c397h2mxsi9471fwyc3yjxw7s4jgvr4q3w2qfh49bhr4wygqj"))))
+ "1amzwy3gpl8ai90dsy7g0z51qq8vxfzbf642wn4bfynb8jmw3kx5"))))
(build-system cmake-build-system)
(native-inputs
`(("pkg-config" ,pkg-config)
(inputs
`(("bdb" ,bdb-5.3)
("boost" ,boost)
+ ("jemalloc" ,jemalloc)
("libevent" ,libevent)
("miniupnpc" ,miniupnpc)
("openssl" ,openssl)
(define-public bitcoin-unlimited
(package
(name "bitcoin-unlimited")
- (version "1.8.0.0")
+ (version "1.9.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/BitcoinUnlimited/BitcoinUnlimited.git")
+ (url "https://github.com/BitcoinUnlimited/BitcoinUnlimited")
(commit (string-append "BCHunlimited" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1ivkig6q7i4n389dg1zv06cmfki20bjq0slmshx0p5a1aavkqj7k"))))
+ (base32 "1pan24g3d5csa004d7zvlizj4mv58ly5i579341isp944phl3g5v"))))
(build-system gnu-build-system)
(native-inputs
`(("autoconf" ,autoconf)
"/bin/lrelease")
(string-append "ac_cv_path_LUPDATE="
(assoc-ref %build-inputs "qttools")
- "/bin/lupdate"))
+ "/bin/lupdate")
+ "--disable-static")
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'fix-build
- (lambda _
- ;; The 'stack' header was not included in unlimited.cpp, which
- ;; caused the build to fail.
- (substitute* "src/unlimited.cpp"
- (("#include <queue>" all)
- (string-append all "\n#include <stack>")))
- #t))
(add-after 'unpack 'fix-tests
(lambda _
- ;; TODO: Find why txvalidationcache_tests fails and
- ;; utilprocess_tests never ends. Disable for now.
+ ;; Disable utilprocess_tests because it never ends.
+ ;; It looks like it tries to start /bin/sleep and waits until it
+ ;; is in the list of running processes, but /bin/sleep doesn't
+ ;; exist.
(substitute* "src/Makefile.test.include"
- (("test/txvalidationcache_tests.cpp")
- "")
(("test/utilprocess_tests.cpp")
""))
#t))
- (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
(lambda _
(substitute* "testing/CMakeLists.txt"
(("test_api") ""))
+ (substitute* "testing/CMakeLists.txt"
+ (("add_subdirectory\\(api\\)") ""))
#t))
(add-after 'configure 'set-build-info
;; Their genbuild.sh to generate a build.h fails in guix (no .git dir) .