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