2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, openssl, db48, boost
|
2020-11-24 16:29:28 +01:00
|
|
|
, zlib, miniupnpc, util-linux, protobuf, qrencode, libevent, python3
|
2019-08-21 14:52:07 +02:00
|
|
|
, withGui, wrapQtAppsHook ? null, qtbase ? null, qttools ? null
|
2018-04-21 21:06:36 +02:00
|
|
|
, Foundation, ApplicationServices, AppKit }:
|
2017-03-27 08:33:41 +02:00
|
|
|
|
2021-01-15 14:21:58 +01:00
|
|
|
with lib;
|
2017-03-27 08:33:41 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-unlimited-" + version;
|
2021-04-27 17:37:54 +02:00
|
|
|
version = "1.9.1.1";
|
2017-03-27 08:33:41 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bitcoinunlimited";
|
|
|
|
repo = "bitcoinunlimited";
|
2020-07-07 23:20:51 +02:00
|
|
|
rev = "BCHunlimited${version}";
|
2021-04-27 17:37:54 +02:00
|
|
|
sha256 = "sha256-K15SI1F/xI4SkX4a41QHLn89YaHCgrlv+wcbkpwGKhI=";
|
2017-03-27 08:33:41 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook python3 ]
|
2019-08-20 23:47:37 +02:00
|
|
|
++ optionals withGui [ wrapQtAppsHook qttools ];
|
2017-03-27 08:33:41 +02:00
|
|
|
buildInputs = [ openssl db48 boost zlib
|
2020-11-24 16:29:28 +01:00
|
|
|
miniupnpc util-linux protobuf libevent ]
|
2019-08-20 23:47:37 +02:00
|
|
|
++ optionals withGui [ qtbase qttools qrencode ]
|
2018-04-21 21:06:36 +02:00
|
|
|
++ optionals stdenv.isDarwin [ Foundation ApplicationServices AppKit ];
|
2017-03-27 08:33:41 +02:00
|
|
|
|
|
|
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
2019-08-20 23:47:37 +02:00
|
|
|
++ optionals withGui [ "--with-gui=qt5"
|
|
|
|
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
|
|
|
];
|
2018-03-12 01:06:06 +01:00
|
|
|
enableParallelBuilding = true;
|
2017-03-27 08:33:41 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Peer-to-peer electronic cash system (Unlimited 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.
|
2018-04-21 21:06:36 +02:00
|
|
|
|
2017-03-27 08:33:41 +02:00
|
|
|
The Bitcoin Unlimited (BU) project seeks to provide a voice to all
|
|
|
|
stakeholders in the Bitcoin ecosystem.
|
|
|
|
|
|
|
|
Every node operator or miner can currently choose their own blocksize limit
|
|
|
|
by modifying their client. Bitcoin Unlimited makes the process easier by
|
|
|
|
providing a configurable option for the accepted and generated blocksize via
|
|
|
|
a GUI menu. Bitcoin Unlimited further provides a user-configurable failsafe
|
|
|
|
setting allowing you to accept a block larger than your maximum accepted
|
|
|
|
blocksize if it reaches a certain number of blocks deep in the chain.
|
|
|
|
|
|
|
|
The Bitcoin Unlimited client is not a competitive block scaling proposal
|
|
|
|
like BIP-101, BIP-102, etc. Instead it tracks consensus. This means that it
|
|
|
|
tracks the blockchain that the hash power majority follows, irrespective of
|
|
|
|
blocksize, and signals its ability to accept larger blocks via protocol and
|
|
|
|
block versioning fields.
|
|
|
|
|
|
|
|
If you support an increase in the blocksize limit by any means - or just
|
|
|
|
support Bitcoin conflict resolution as originally envisioned by its founder -
|
2018-04-21 21:06:36 +02:00
|
|
|
consider running a Bitcoin Unlimited client.
|
2017-03-27 08:33:41 +02:00
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.bitcoinunlimited.info/";
|
2017-03-27 08:33:41 +02:00
|
|
|
maintainers = with maintainers; [ DmitryTsygankov ];
|
|
|
|
license = licenses.mit;
|
2018-09-12 21:01:03 +02:00
|
|
|
broken = stdenv.isDarwin;
|
2017-03-27 08:33:41 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|