2018-09-09 14:54:16 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, autoreconfHook, hexdump, openssl, db48
|
2019-06-16 21:59:06 +02:00
|
|
|
, boost, zlib, miniupnpc, qt4, protobuf, qrencode, libevent
|
2018-09-09 14:54:16 +02:00
|
|
|
, AppKit
|
|
|
|
, withGui ? !stdenv.isDarwin
|
|
|
|
}:
|
2017-08-25 18:52:31 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2020-06-07 23:11:08 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2017-08-25 18:52:31 +02:00
|
|
|
name = "bit1" + (toString (optional (!withGui) "d")) + "-" + version;
|
2018-03-10 01:48:55 +01:00
|
|
|
version = "1.15.1";
|
2017-08-25 18:52:31 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/btc1/bitcoin/archive/v${version}.tar.gz";
|
2018-03-10 01:48:55 +01:00
|
|
|
sha256 = "0v0g2wb4nsnhddxzb63vj2bc1mgyj05vqm5imicjfz8prvgc0si8";
|
2017-08-25 18:52:31 +02:00
|
|
|
};
|
|
|
|
|
2018-09-09 14:54:16 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook hexdump ];
|
|
|
|
buildInputs = [ openssl db48 boost zlib miniupnpc protobuf libevent ]
|
|
|
|
++ optionals withGui [ qt4 qrencode ]
|
|
|
|
++ optional stdenv.isDarwin AppKit;
|
2017-08-25 18:52:31 +02:00
|
|
|
|
|
|
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
|
|
|
++ optionals withGui [ "--with-gui=qt4" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Peer-to-peer electronic cash system (btc1 client)";
|
|
|
|
longDescription= ''
|
|
|
|
Bitcoin is a free open source peer-to-peer electronic cash system that is
|
|
|
|
completely decentralized, without the need for a central server or trusted
|
|
|
|
parties. Users hold the crypto keys to their own money and transact directly
|
|
|
|
with each other, with the help of a P2P network to check for double-spending.
|
|
|
|
|
|
|
|
btc1 is an implementation of a Bitcoin full node with segwit2x hard fork
|
|
|
|
support.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/btc1/bitcoin";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sorpaas ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|