2021-08-05 21:33:18 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
, pkg-config
|
|
|
|
|
, autoreconfHook
|
|
|
|
|
, openssl
|
|
|
|
|
, db48
|
|
|
|
|
, boost
|
|
|
|
|
, zlib
|
|
|
|
|
, miniupnpc
|
|
|
|
|
, qtbase ? null
|
|
|
|
|
, qttools ? null
|
|
|
|
|
, util-linux
|
|
|
|
|
, protobuf
|
|
|
|
|
, qrencode
|
|
|
|
|
, libevent
|
|
|
|
|
, withGui
|
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
|
pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-classic";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
version = "1.3.8uahf";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "bitcoinclassic";
|
|
|
|
|
repo = "bitcoinclassic";
|
|
|
|
|
rev = "v${version}";
|
2022-01-07 04:07:37 +00:00
|
|
|
|
sha256 = "sha256-fVmFD1B4kKoejd2cmPPF5TJJQTAA6AVsGlVY8IIUNK4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
buildInputs = [
|
|
|
|
|
openssl
|
|
|
|
|
db48
|
|
|
|
|
boost
|
|
|
|
|
zlib
|
|
|
|
|
miniupnpc
|
|
|
|
|
util-linux
|
|
|
|
|
protobuf
|
|
|
|
|
libevent
|
|
|
|
|
] ++ lib.optionals withGui [ qtbase qttools qrencode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
2021-08-05 21:33:18 +00:00
|
|
|
|
++ lib.optionals withGui [
|
|
|
|
|
"--with-gui=qt5"
|
|
|
|
|
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
|
CXXFLAGS = [ "-std=c++14" ];
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "Peer-to-peer electronic cash system (Classic client)";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
longDescription = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Bitcoin Classic stands for the original Bitcoin as Satoshi described it,
|
|
|
|
|
"A Peer-to-Peer Electronic Cash System". We are writing the software that
|
|
|
|
|
miners and users say they want. We will make sure it solves their needs, help
|
|
|
|
|
them deploy it, and gracefully upgrade the bitcoin network's capacity
|
|
|
|
|
together. The data shows that Bitcoin can grow, on-chain, to welcome many
|
|
|
|
|
more users onto our coin in a safe and distributed manner. In the future we
|
|
|
|
|
will continue to release updates that are in line with Satoshi’s whitepaper &
|
|
|
|
|
vision, and are agreed upon by the community.
|
|
|
|
|
'';
|
|
|
|
|
homepage = "https://bitcoinclassic.com/";
|
|
|
|
|
maintainers = with maintainers; [ jefdaj ];
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
broken = stdenv.isDarwin;
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
};
|
|
|
|
|
}
|