@@ -1,25 +1,29 @@
1−{ stdenv, fetchurl, pkgconfig, autoreconfHook, openssl, db48, boost
2−, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, libevent
1+{ stdenv, fetchurl, pkgconfig, autoreconfHook, openssl, db48, boost, zeromq
2+, zlib, miniupnpc, qtbase ? null, qttools ? null, utillinux, protobuf, qrencode, libevent
33, withGui }:
44
55with stdenv.lib;
66stdenv.mkDerivation rec{
77 name = "bitcoin" + (toString (optional (!withGui) "d")) + "-" + version;
8− version = "0.15.0.1";
8+ version = "0.15.1";
99
1010 src = fetchurl {
11− url = "https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz";
12− sha256 = "16si3skhm6jhw1pkniv2b9y1kkdhjmhj392palphir0qc1srwzmm";
11+ urls = [ "https://bitcoincore.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
12+ "https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
13+ ];
14+ sha256 = "1d22fgwdcn343kd95lh389hj417zwbmnhi29cij8n7wc0nz2vpil";
1315 };
1416
1517 nativeBuildInputs = [ pkgconfig autoreconfHook ];
16− buildInputs = [ openssl db48 boost zlib
18+ buildInputs = [ openssl db48 boost zlib zeromq
1719 miniupnpc protobuf libevent]
1820 ++ optionals stdenv.isLinux [ utillinux ]
19− ++ optionals withGui [ qt4 qrencode ];
21+ ++ optionals withGui [ qtbase qttools qrencode ];
2022
2123 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
22− ++ optionals withGui [ "--with-gui=qt4" ];
24+ ++ optionals withGui [ "--with-gui=qt5"
25+ "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
26+ ];
2327
2428 meta = {
2529 description = "Peer-to-peer electronic cash system";