3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/blockchains/bitcoin-classic.nix

57 lines
2.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, openssl, db48, boost
2020-11-24 15:29:28 +00:00
, zlib, miniupnpc, qtbase ? null, qttools ? null, util-linux, protobuf, qrencode, libevent
, withGui }:
2021-01-15 13:21:58 +00:00
with lib;
stdenv.mkDerivation rec {
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-classic-" + version;
2021-01-18 11:00:43 +00:00
version = "1.3.8uahf";
src = fetchFromGitHub {
owner = "bitcoinclassic";
repo = "bitcoinclassic";
rev = "v${version}";
2021-01-18 11:00:43 +00:00
sha256 = "sha256-V1cOB5FLotGS5jup/aVaiDiyr/v2KJ2SLcIu/Hrjuwk=";
};
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [ openssl db48 boost zlib
2020-11-24 15:29:28 +00:00
miniupnpc util-linux protobuf libevent ]
++ optionals withGui [ qtbase qttools qrencode ];
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
2019-08-26 16:38:38 +01:00
++ optionals withGui [ "--with-gui=qt5"
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
];
enableParallelBuilding = true;
dontWrapQtApps = true;
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-06-18 09:29:46 +01: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 06:22:35 +01:00
miners and users say they want. We will make sure it solves their needs, help
2017-06-18 09:29:46 +01:00
them deploy it, and gracefully upgrade the bitcoin network's capacity
2017-05-10 06:22:35 +01:00
together. The data shows that Bitcoin can grow, on-chain, to welcome many
2017-06-18 09:29:46 +01:00
more users onto our coin in a safe and distributed manner. In the future we
2017-05-10 06:22:35 +01:00
will continue to release updates that are in line with Satoshis 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;
};
}