2017-03-07 01:58:09 +01:00
|
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
|
|
|
|
|
, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, libevent
|
2016-02-27 13:44:45 +01:00
|
|
|
|
, withGui }:
|
|
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2017-03-07 01:58:09 +01:00
|
|
|
|
|
2016-02-27 13:44:45 +01:00
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
|
|
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-classic-" + version;
|
2017-05-10 07:22:35 +02:00
|
|
|
|
version = "1.2.5";
|
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}";
|
2017-05-10 07:22:35 +02:00
|
|
|
|
sha256 = "1z6g930csvx49krl34207yqwlr8dkxpi72k3msh15p1kjvv90nvz";
|
2016-02-27 13:44:45 +01:00
|
|
|
|
};
|
|
|
|
|
|
2017-03-07 01:58:09 +01:00
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
|
|
|
|
buildInputs = [ openssl db48 boost zlib
|
|
|
|
|
miniupnpc utillinux protobuf libevent ]
|
2016-02-27 13:44:45 +01:00
|
|
|
|
++ optionals withGui [ qt4 qrencode ];
|
|
|
|
|
|
2016-04-27 23:41:28 +02:00
|
|
|
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
2016-02-27 13:44:45 +01:00
|
|
|
|
++ optionals withGui [ "--with-gui=qt4" ];
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
|
description = "Peer-to-peer electronic cash system (Classic 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.
|
|
|
|
|
|
2017-05-10 07:22:35 +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
|
|
|
|
|
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 &
|
2016-02-27 13:44:45 +01:00
|
|
|
|
vision, and are agreed upon by the community.
|
|
|
|
|
'';
|
2017-03-07 01:58:09 +01:00
|
|
|
|
homepage = https://bitcoinclassic.com/;
|
2016-02-27 13:44:45 +01:00
|
|
|
|
maintainers = with maintainers; [ jefdaj ];
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
};
|
|
|
|
|
}
|