Commit | Line | Data |
---|---|---|
20c6b9da AE |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages finance) | |
20 | #:use-module ((guix licenses) #:prefix license:) | |
21 | #:use-module (guix packages) | |
22 | #:use-module (guix download) | |
23 | #:use-module (guix build utils) | |
24 | #:use-module (guix build-system gnu) | |
25 | #:use-module (gnu packages boost) | |
26 | #:use-module (gnu packages databases) | |
27 | #:use-module (gnu packages linux) | |
28 | #:use-module (gnu packages pkg-config) | |
29 | #:use-module (gnu packages protobuf) | |
30 | #:use-module (gnu packages python) | |
31 | #:use-module (gnu packages qt) | |
32 | #:use-module (gnu packages tls) | |
33 | #:use-module (gnu packages upnp)) | |
34 | ||
35 | (define-public bitcoin-core | |
36 | (package | |
37 | (name "bitcoin-core") | |
38 | (version "0.11.0") | |
39 | (source (origin | |
40 | (method url-fetch) | |
41 | (uri | |
42 | (string-append "https://bitcoin.org/bin/bitcoin-core-" | |
43 | version "/bitcoin-" | |
44 | version ".tar.gz")) | |
45 | (sha256 | |
46 | (base32 | |
47 | "17yh6lq13xzzi5v2i48qaxiqm40x3hrj4gwyamkib9yzmmb1gfji")))) | |
48 | (build-system gnu-build-system) | |
49 | (native-inputs | |
50 | `(("pkg-config" ,pkg-config) | |
51 | ("python" ,python-wrapper) ; for the tests | |
52 | ("util-linux" ,util-linux))) ; provides the hexdump command for tests | |
53 | (inputs | |
54 | `(("bdb" ,bdb) | |
55 | ("boost" ,boost) | |
56 | ("miniupnpc" ,miniupnpc) | |
57 | ("openssl" ,openssl) | |
58 | ("protobuf" ,protobuf) | |
59 | ("qt" ,qt))) | |
60 | (arguments | |
61 | `(#:configure-flags | |
62 | (list | |
63 | ;; We use a bdb version newer than 4.8. | |
64 | "--with-incompatible-bdb" | |
65 | ;; Boost is not found unless specified manually. | |
66 | (string-append "--with-boost=" | |
67 | (assoc-ref %build-inputs "boost"))) | |
68 | #:phases | |
69 | (modify-phases %standard-phases | |
70 | (add-before 'check 'set-home | |
71 | (lambda _ | |
72 | (setenv "HOME" (getenv "TMPDIR"))))))) ; Tests write to $HOME. | |
73 | (home-page "https://bitcoin.org/en/") | |
74 | (synopsis "Bitcoin peer-to-peer client") | |
75 | (description | |
76 | "Bitcoin is a digital currency that enables instant payments to anyone | |
77 | anywhere in the world. It uses peer-to-peer technology to operate without | |
78 | central authority: managing transactions and issuing money are carried out | |
79 | collectively by the network. Bitcoin Core is the reference implementation | |
80 | of the bitcoin protocol. This package provides the Bitcoin Core command | |
81 | line client and a client based on Qt.") | |
82 | (license license:expat))) |