@@ -0,0 +1,41 @@
1+{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
2+, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, libevent
3+, withGui }:
4+
5+with stdenv.lib;
6+
7+stdenv.mkDerivation rec {
8+
9+ name = "bitcoin" + (toString (optional (!withGui) "d")) + "-abc-" + version;
10+ version = "0.15.0";
11+
12+ src = fetchFromGitHub {
13+ owner = "bitcoin-ABC";
14+ repo = "bitcoin-abc";
15+ rev = "v${version}";
16+ sha256 = "1fygn6cc99iasg5g5jyps5ps873hfnn4ln4hsmcwlwiqd591qxyv";
17+ };
18+
19+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
20+ buildInputs = [ openssl db48 boost zlib
21+ miniupnpc utillinux protobuf libevent ]
22+ ++ optionals withGui [ qt4 qrencode ];
23+
24+ configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
25+ ++ optionals withGui [ "--with-gui=qt4" ];
26+
27+ meta = {
28+ description = "Peer-to-peer electronic cash system (Cash client)";
29+ longDescription= ''
30+ Bitcoin ABC is the name of open source software which enables the use of Bitcoin.
31+ It is designed to facilite a hard fork to increase Bitcoin's block size limit.
32+ "ABC" stands for "Adjustable Blocksize Cap".
33+
34+ Bitcoin ABC is a fork of the Bitcoin Core software project.
35+ '';
36+ homepage = https://bitcoinabc.org/;
37+ maintainers = with maintainers; [ lassulus ];
38+ license = licenses.mit;
39+ platforms = platforms.unix;
40+ };
41+}