You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.2 KiB
77 lines
2.2 KiB
3 years ago
|
{ lib
|
||
|
, stdenv
|
||
|
, fetchFromGitHub
|
||
|
, pkg-config
|
||
|
, autoreconfHook
|
||
|
, openssl
|
||
|
, db48
|
||
|
, boost
|
||
|
, zlib
|
||
|
, miniupnpc
|
||
|
, qtbase ? null
|
||
|
, qttools ? null
|
||
|
, util-linux
|
||
|
, protobuf
|
||
|
, qrencode
|
||
|
, libevent
|
||
|
, withGui
|
||
|
}:
|
||
7 years ago
|
|
||
8 years ago
|
stdenv.mkDerivation rec {
|
||
3 years ago
|
pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-classic";
|
||
3 years ago
|
version = "1.3.8uahf";
|
||
8 years ago
|
|
||
7 years ago
|
src = fetchFromGitHub {
|
||
|
owner = "bitcoinclassic";
|
||
|
repo = "bitcoinclassic";
|
||
|
rev = "v${version}";
|
||
3 years ago
|
sha256 = "sha256-V1cOB5FLotGS5jup/aVaiDiyr/v2KJ2SLcIu/Hrjuwk=";
|
||
8 years ago
|
};
|
||
|
|
||
3 years ago
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
||
3 years ago
|
buildInputs = [
|
||
|
openssl
|
||
|
db48
|
||
|
boost
|
||
|
zlib
|
||
|
miniupnpc
|
||
|
util-linux
|
||
|
protobuf
|
||
|
libevent
|
||
|
] ++ lib.optionals withGui [ qtbase qttools qrencode ];
|
||
8 years ago
|
|
||
8 years ago
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
||
3 years ago
|
++ lib.optionals withGui [
|
||
|
"--with-gui=qt5"
|
||
|
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
||
|
];
|
||
8 years ago
|
|
||
6 years ago
|
enableParallelBuilding = true;
|
||
|
|
||
3 years ago
|
dontWrapQtApps = true;
|
||
|
|
||
3 years ago
|
meta = with lib; {
|
||
8 years ago
|
description = "Peer-to-peer electronic cash system (Classic client)";
|
||
3 years ago
|
longDescription = ''
|
||
8 years ago
|
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.
|
||
|
|
||
7 years ago
|
Bitcoin Classic stands for the original Bitcoin as Satoshi described it,
|
||
|
"A Peer-to-Peer Electronic Cash System". We are writing the software that
|
||
7 years ago
|
miners and users say they want. We will make sure it solves their needs, help
|
||
7 years ago
|
them deploy it, and gracefully upgrade the bitcoin network's capacity
|
||
7 years ago
|
together. The data shows that Bitcoin can grow, on-chain, to welcome many
|
||
7 years ago
|
more users onto our coin in a safe and distributed manner. In the future we
|
||
7 years ago
|
will continue to release updates that are in line with Satoshi’s whitepaper &
|
||
8 years ago
|
vision, and are agreed upon by the community.
|
||
|
'';
|
||
4 years ago
|
homepage = "https://bitcoinclassic.com/";
|
||
8 years ago
|
maintainers = with maintainers; [ jefdaj ];
|
||
|
license = licenses.mit;
|
||
6 years ago
|
broken = stdenv.isDarwin;
|
||
8 years ago
|
platforms = platforms.unix;
|
||
|
};
|
||
|
}
|