mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 20:34:06 +00:00
Merge pull request #131686 from SuperSandro2000/bitcoin
This commit is contained in:
commit
f7e54b6765
@ -1,12 +1,28 @@
|
||||
{ lib, stdenv, mkDerivation, fetchFromGitHub, pkg-config, cmake, openssl, db53, boost
|
||||
, zlib, miniupnpc, qtbase ? null , qttools ? null, util-linux, protobuf, qrencode, libevent
|
||||
, withGui, python3, jemalloc, zeromq4 }:
|
||||
|
||||
with lib;
|
||||
{ lib
|
||||
, stdenv
|
||||
, mkDerivation
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, cmake
|
||||
, openssl
|
||||
, db53
|
||||
, boost
|
||||
, zlib
|
||||
, miniupnpc
|
||||
, qtbase ? null
|
||||
, qttools ? null
|
||||
, util-linux
|
||||
, protobuf
|
||||
, qrencode
|
||||
, libevent
|
||||
, withGui
|
||||
, python3
|
||||
, jemalloc
|
||||
, zeromq4
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
|
||||
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-abc-" + version;
|
||||
pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-abc";
|
||||
version = "0.21.13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@ -19,11 +35,21 @@ mkDerivation rec {
|
||||
patches = [ ./fix-bitcoin-qt-build.patch ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config cmake ];
|
||||
buildInputs = [ openssl db53 boost zlib python3 jemalloc zeromq4
|
||||
miniupnpc util-linux protobuf libevent ]
|
||||
++ optionals withGui [ qtbase qttools qrencode ];
|
||||
buildInputs = [
|
||||
openssl
|
||||
db53
|
||||
boost
|
||||
zlib
|
||||
python3
|
||||
jemalloc
|
||||
zeromq4
|
||||
miniupnpc
|
||||
util-linux
|
||||
protobuf
|
||||
libevent
|
||||
] ++ lib.optionals withGui [ qtbase qttools qrencode ];
|
||||
|
||||
cmakeFlags = optionals (!withGui) [
|
||||
cmakeFlags = lib.optionals (!withGui) [
|
||||
"-DBUILD_BITCOIN_QT=OFF"
|
||||
];
|
||||
|
||||
@ -32,9 +58,9 @@ mkDerivation rec {
|
||||
find ./. -type f -iname "*.sh" -exec chmod +x {} \;
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "Peer-to-peer electronic cash system (Cash client)";
|
||||
longDescription= ''
|
||||
longDescription = ''
|
||||
Bitcoin ABC is the name of open source software which enables the use of Bitcoin.
|
||||
It is designed to facilite a hard fork to increase Bitcoin's block size limit.
|
||||
"ABC" stands for "Adjustable Blocksize Cap".
|
@ -1,12 +1,24 @@
|
||||
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, openssl, db48, boost
|
||||
, zlib, miniupnpc, qtbase ? null, qttools ? null, util-linux, protobuf, qrencode, libevent
|
||||
, withGui }:
|
||||
|
||||
with lib;
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, autoreconfHook
|
||||
, openssl
|
||||
, db48
|
||||
, boost
|
||||
, zlib
|
||||
, miniupnpc
|
||||
, qtbase ? null
|
||||
, qttools ? null
|
||||
, util-linux
|
||||
, protobuf
|
||||
, qrencode
|
||||
, libevent
|
||||
, withGui
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-classic-" + version;
|
||||
pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-classic";
|
||||
version = "1.3.8uahf";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@ -17,22 +29,30 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
||||
buildInputs = [ openssl db48 boost zlib
|
||||
miniupnpc util-linux protobuf libevent ]
|
||||
++ optionals withGui [ qtbase qttools qrencode ];
|
||||
buildInputs = [
|
||||
openssl
|
||||
db48
|
||||
boost
|
||||
zlib
|
||||
miniupnpc
|
||||
util-linux
|
||||
protobuf
|
||||
libevent
|
||||
] ++ lib.optionals withGui [ qtbase qttools qrencode ];
|
||||
|
||||
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
||||
++ optionals withGui [ "--with-gui=qt5"
|
||||
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
||||
];
|
||||
++ lib.optionals withGui [
|
||||
"--with-gui=qt5"
|
||||
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "Peer-to-peer electronic cash system (Classic client)";
|
||||
longDescription= ''
|
||||
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
|
@ -28588,38 +28588,60 @@ in
|
||||
|
||||
balanceofsatoshis = nodePackages.balanceofsatoshis;
|
||||
|
||||
bitcoin = libsForQt5.callPackage ../applications/blockchains/bitcoin.nix { miniupnpc = miniupnpc_2; withGui = true; };
|
||||
bitcoind = callPackage ../applications/blockchains/bitcoin.nix { miniupnpc = miniupnpc_2; withGui = false; };
|
||||
bitcoin = libsForQt5.callPackage ../applications/blockchains/bitcoin {
|
||||
miniupnpc = miniupnpc_2;
|
||||
withGui = true;
|
||||
};
|
||||
|
||||
bitcoind-knots = callPackage ../applications/blockchains/bitcoin-knots.nix { miniupnpc = miniupnpc_2; };
|
||||
bitcoind = callPackage ../applications/blockchains/bitcoin {
|
||||
miniupnpc = miniupnpc_2;
|
||||
withGui = false;
|
||||
};
|
||||
|
||||
bitcoind-knots = callPackage ../applications/blockchains/bitcoin-knots { miniupnpc = miniupnpc_2; };
|
||||
|
||||
cgminer = callPackage ../applications/blockchains/cgminer { };
|
||||
|
||||
chia = callPackage ../applications/blockchains/chia { };
|
||||
|
||||
clightning = callPackage ../applications/blockchains/clightning.nix { };
|
||||
clightning = callPackage ../applications/blockchains/clightning { };
|
||||
|
||||
bitcoin-abc = libsForQt5.callPackage ../applications/blockchains/bitcoin-abc.nix { boost = boost165; withGui = true; };
|
||||
bitcoind-abc = callPackage ../applications/blockchains/bitcoin-abc.nix {
|
||||
bitcoin-abc = libsForQt5.callPackage ../applications/blockchains/bitcoin-abc {
|
||||
boost = boost165;
|
||||
withGui = true;
|
||||
};
|
||||
bitcoind-abc = callPackage ../applications/blockchains/bitcoin-abc {
|
||||
boost = boost165;
|
||||
mkDerivation = stdenv.mkDerivation;
|
||||
withGui = false;
|
||||
};
|
||||
|
||||
bitcoin-unlimited = libsForQt514.callPackage ../applications/blockchains/bitcoin-unlimited.nix {
|
||||
bitcoin-unlimited = libsForQt514.callPackage ../applications/blockchains/bitcoin-unlimited {
|
||||
inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
|
||||
withGui = true;
|
||||
};
|
||||
bitcoind-unlimited = callPackage ../applications/blockchains/bitcoin-unlimited.nix {
|
||||
bitcoind-unlimited = callPackage ../applications/blockchains/bitcoin-unlimited {
|
||||
inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
|
||||
withGui = false;
|
||||
};
|
||||
|
||||
bitcoin-classic = libsForQt514.callPackage ../applications/blockchains/bitcoin-classic.nix { boost = boost165; withGui = true; };
|
||||
bitcoind-classic = callPackage ../applications/blockchains/bitcoin-classic.nix { boost = boost165; withGui = false; };
|
||||
bitcoin-classic = libsForQt514.callPackage ../applications/blockchains/bitcoin-classic {
|
||||
boost = boost165;
|
||||
withGui = true;
|
||||
};
|
||||
bitcoind-classic = callPackage ../applications/blockchains/bitcoin-classic {
|
||||
boost = boost165;
|
||||
withGui = false;
|
||||
};
|
||||
|
||||
bitcoin-gold = libsForQt514.callPackage ../applications/blockchains/bitcoin-gold.nix { boost = boost165; withGui = true; };
|
||||
bitcoind-gold = callPackage ../applications/blockchains/bitcoin-gold.nix { boost = boost165; withGui = false; };
|
||||
bitcoin-gold = libsForQt514.callPackage ../applications/blockchains/bitcoin-gold {
|
||||
boost = boost165;
|
||||
withGui = true;
|
||||
};
|
||||
bitcoind-gold = callPackage ../applications/blockchains/bitcoin-gold {
|
||||
boost = boost165;
|
||||
withGui = false;
|
||||
};
|
||||
|
||||
btcpayserver = callPackage ../applications/blockchains/btcpayserver { };
|
||||
|
||||
@ -28627,25 +28649,37 @@ in
|
||||
|
||||
cryptop = python3.pkgs.callPackage ../applications/blockchains/cryptop { };
|
||||
|
||||
dashpay = callPackage ../applications/blockchains/dashpay.nix { };
|
||||
dashpay = callPackage ../applications/blockchains/dashpay { };
|
||||
|
||||
dcrd = callPackage ../applications/blockchains/dcrd.nix { };
|
||||
dcrwallet = callPackage ../applications/blockchains/dcrwallet.nix { };
|
||||
dcrd = callPackage ../applications/blockchains/dcrd { };
|
||||
dcrwallet = callPackage ../applications/blockchains/dcrwallet { };
|
||||
|
||||
dero = callPackage ../applications/blockchains/dero.nix { boost = boost165; };
|
||||
dero = callPackage ../applications/blockchains/dero { boost = boost165; };
|
||||
|
||||
digibyte = libsForQt514.callPackage ../applications/blockchains/digibyte.nix { withGui = true; };
|
||||
digibyted = callPackage ../applications/blockchains/digibyte.nix { withGui = false; };
|
||||
digibyte = libsForQt514.callPackage ../applications/blockchains/digibyte { withGui = true; };
|
||||
digibyted = callPackage ../applications/blockchains/digibyte { withGui = false; };
|
||||
|
||||
dogecoin = callPackage ../applications/blockchains/dogecoin.nix { boost = boost165; withGui = true; };
|
||||
dogecoind = callPackage ../applications/blockchains/dogecoin.nix { boost = boost165; withGui = false; };
|
||||
dogecoin = callPackage ../applications/blockchains/dogecoin {
|
||||
boost = boost165;
|
||||
withGui = true;
|
||||
};
|
||||
dogecoind = callPackage ../applications/blockchains/dogecoin {
|
||||
boost = boost165;
|
||||
withGui = false;
|
||||
};
|
||||
|
||||
eclair = callPackage ../applications/blockchains/eclair.nix { };
|
||||
eclair = callPackage ../applications/blockchains/eclair { };
|
||||
|
||||
electrs = callPackage ../applications/blockchains/electrs.nix { };
|
||||
electrs = callPackage ../applications/blockchains/electrs { };
|
||||
|
||||
elements = libsForQt5.callPackage ../applications/blockchains/elements.nix { miniupnpc = miniupnpc_2; withGui = true; };
|
||||
elementsd = callPackage ../applications/blockchains/elements.nix { miniupnpc = miniupnpc_2; withGui = false; };
|
||||
elements = libsForQt5.callPackage ../applications/blockchains/elements {
|
||||
miniupnpc = miniupnpc_2;
|
||||
withGui = true;
|
||||
};
|
||||
elementsd = callPackage ../applications/blockchains/elements {
|
||||
miniupnpc = miniupnpc_2;
|
||||
withGui = false;
|
||||
};
|
||||
|
||||
ergo = callPackage ../applications/blockchains/ergo { };
|
||||
|
||||
@ -28653,7 +28687,7 @@ in
|
||||
|
||||
faraday = callPackage ../applications/blockchains/faraday { };
|
||||
|
||||
go-ethereum = callPackage ../applications/blockchains/go-ethereum.nix {
|
||||
go-ethereum = callPackage ../applications/blockchains/go-ethereum {
|
||||
inherit (darwin) libobjc;
|
||||
inherit (darwin.apple_sdk.frameworks) IOKit;
|
||||
};
|
||||
@ -28666,18 +28700,18 @@ in
|
||||
|
||||
lightning-pool = callPackage ../applications/blockchains/lightning-pool { };
|
||||
|
||||
litecoin = libsForQt514.callPackage ../applications/blockchains/litecoin.nix {
|
||||
litecoin = libsForQt514.callPackage ../applications/blockchains/litecoin {
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit;
|
||||
};
|
||||
litecoind = litecoin.override { withGui = false; };
|
||||
|
||||
livedl = callPackage ../tools/misc/livedl { };
|
||||
|
||||
lnd = callPackage ../applications/blockchains/lnd.nix { };
|
||||
lnd = callPackage ../applications/blockchains/lnd { };
|
||||
|
||||
lndconnect = callPackage ../applications/blockchains/lndconnect { };
|
||||
|
||||
lndmanage = callPackage ../applications/blockchains/lndmanage.nix { };
|
||||
lndmanage = callPackage ../applications/blockchains/lndmanage { };
|
||||
|
||||
monero = callPackage ../applications/blockchains/monero {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreData IOKit PCSC;
|
||||
@ -28692,17 +28726,17 @@ in
|
||||
boost = boost17x;
|
||||
};
|
||||
|
||||
masari = callPackage ../applications/blockchains/masari.nix { boost = boost165; };
|
||||
masari = callPackage ../applications/blockchains/masari { boost = boost165; };
|
||||
|
||||
nano-wallet = libsForQt5.callPackage ../applications/blockchains/nano-wallet { };
|
||||
|
||||
namecoin = callPackage ../applications/blockchains/namecoin.nix { withGui = true; };
|
||||
namecoind = callPackage ../applications/blockchains/namecoin.nix { withGui = false; };
|
||||
namecoin = callPackage ../applications/blockchains/namecoin { withGui = true; };
|
||||
namecoind = callPackage ../applications/blockchains/namecoin { withGui = false; };
|
||||
|
||||
nbxplorer = callPackage ../applications/blockchains/nbxplorer { };
|
||||
|
||||
pivx = libsForQt5.callPackage ../applications/blockchains/pivx.nix { withGui = true; };
|
||||
pivxd = callPackage ../applications/blockchains/pivx.nix {
|
||||
pivx = libsForQt5.callPackage ../applications/blockchains/pivx { withGui = true; };
|
||||
pivxd = callPackage ../applications/blockchains/pivx {
|
||||
withGui = false;
|
||||
autoreconfHook = buildPackages.autoreconfHook269;
|
||||
};
|
||||
@ -28711,22 +28745,28 @@ in
|
||||
|
||||
pycoin = with python3Packages; toPythonApplication pycoin;
|
||||
|
||||
stellar-core = callPackage ../applications/blockchains/stellar-core.nix { };
|
||||
stellar-core = callPackage ../applications/blockchains/stellar-core { };
|
||||
|
||||
sumokoin = callPackage ../applications/blockchains/sumokoin.nix { boost = boost165; };
|
||||
sumokoin = callPackage ../applications/blockchains/sumokoin { boost = boost165; };
|
||||
|
||||
tessera = callPackage ../applications/blockchains/tessera.nix { };
|
||||
tessera = callPackage ../applications/blockchains/tessera { };
|
||||
|
||||
turbo-geth = callPackage ../applications/blockchains/turbo-geth.nix { };
|
||||
turbo-geth = callPackage ../applications/blockchains/turbo-geth { };
|
||||
|
||||
vertcoin = libsForQt514.callPackage ../applications/blockchains/vertcoin.nix { boost = boost165; withGui = true; };
|
||||
vertcoind = callPackage ../applications/blockchains/vertcoin.nix { boost = boost165; withGui = false; };
|
||||
vertcoin = libsForQt514.callPackage ../applications/blockchains/vertcoin {
|
||||
boost = boost165;
|
||||
withGui = true;
|
||||
};
|
||||
vertcoind = callPackage ../applications/blockchains/vertcoin {
|
||||
boost = boost165;
|
||||
withGui = false;
|
||||
};
|
||||
|
||||
wasabiwallet = callPackage ../applications/blockchains/wasabiwallet { };
|
||||
|
||||
wasabibackend = callPackage ../applications/blockchains/wasabibackend { Nuget = dotnetPackages.Nuget; };
|
||||
wasabibackend = callPackage ../applications/blockchains/wasabibackend { Nuget = dotnetPackages.Nuget; };
|
||||
|
||||
wownero = callPackage ../applications/blockchains/wownero.nix {};
|
||||
wownero = callPackage ../applications/blockchains/wownero { };
|
||||
|
||||
zcash = callPackage ../applications/blockchains/zcash { stdenv = llvmPackages_11.stdenv; };
|
||||
|
||||
@ -28738,9 +28778,9 @@ in
|
||||
|
||||
polkadot = callPackage ../applications/blockchains/polkadot { };
|
||||
|
||||
particl-core = callPackage ../applications/blockchains/particl/particl-core.nix { miniupnpc = miniupnpc_2; };
|
||||
particl-core = callPackage ../applications/blockchains/particl-core { miniupnpc = miniupnpc_2; };
|
||||
|
||||
quorum = callPackage ../applications/blockchains/quorum.nix { };
|
||||
quorum = callPackage ../applications/blockchains/quorum { };
|
||||
|
||||
whirlpool-gui = callPackage ../applications/blockchains/whirlpool-gui { };
|
||||
|
||||
@ -30425,7 +30465,7 @@ in
|
||||
|
||||
cryptoverif = callPackage ../applications/science/logic/cryptoverif { };
|
||||
|
||||
crypto-org-wallet = callPackage ../applications/blockchains/crypto-org-wallet.nix { };
|
||||
crypto-org-wallet = callPackage ../applications/blockchains/crypto-org-wallet { };
|
||||
|
||||
caprice32 = callPackage ../misc/emulators/caprice32 { };
|
||||
|
||||
@ -32503,7 +32543,7 @@ in
|
||||
|
||||
fluxboxlauncher = callPackage ../applications/misc/fluxboxlauncher {};
|
||||
|
||||
btcdeb = callPackage ../applications/blockchains/btcdeb {};
|
||||
btcdeb = callPackage ../applications/blockchains/btcdeb { };
|
||||
|
||||
jitsi-meet-electron = callPackage ../applications/networking/instant-messengers/jitsi-meet-electron { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user