Merge pull request #146916 from prusnak/bitcoin-knots
bitcoin-knots: 0.20.0.knots20200614 -> 22.0.knots20211108
This commit is contained in:
commit
b4f2fe5936
@ -1,41 +1,83 @@
|
|||||||
{ lib, stdenv
|
{ lib
|
||||||
, fetchFromGitHub
|
, stdenv
|
||||||
, pkg-config
|
, fetchurl
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, db5
|
, pkg-config
|
||||||
, openssl
|
|
||||||
, boost
|
|
||||||
, zlib
|
|
||||||
, miniupnpc
|
|
||||||
, libevent
|
|
||||||
, protobuf
|
|
||||||
, util-linux
|
, util-linux
|
||||||
|
, hexdump
|
||||||
|
, autoSignDarwinBinariesHook
|
||||||
|
, wrapQtAppsHook ? null
|
||||||
|
, boost
|
||||||
|
, libevent
|
||||||
|
, miniupnpc
|
||||||
|
, zeromq
|
||||||
|
, zlib
|
||||||
|
, db48
|
||||||
|
, sqlite
|
||||||
|
, qrencode
|
||||||
|
, qtbase ? null
|
||||||
|
, qttools ? null
|
||||||
|
, python3
|
||||||
|
, nixosTests
|
||||||
|
, withGui
|
||||||
|
, withWallet ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
with lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bitcoind-knots";
|
pname = if withGui then "bitcoin-knots" else "bitcoind-knots";
|
||||||
version = "0.20.0";
|
version = "22.0.knots20211108";
|
||||||
versionDate = "20200614";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchurl {
|
||||||
owner = "bitcoinknots";
|
url = "https://bitcoinknots.org/files/22.x/${version}/guix/bitcoin-${version}.tar.gz";
|
||||||
repo = "bitcoin";
|
sha256 = "04sqbx4sp3bzwbl8z53nz96n3s0590h327ih0mbgyvfvl3b8pj4i";
|
||||||
rev = "v${version}.knots${versionDate}";
|
|
||||||
sha256 = "0c8k1154kcwz6q2803wx0zigvqaij1fi5akgfqlj3yl57jjw48jj";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
nativeBuildInputs =
|
||||||
buildInputs = [ openssl db5 openssl util-linux
|
[ autoreconfHook pkg-config ]
|
||||||
protobuf boost zlib miniupnpc libevent ];
|
++ optionals stdenv.isLinux [ util-linux ]
|
||||||
|
++ optionals stdenv.isDarwin [ hexdump ]
|
||||||
|
++ optionals (stdenv.isDarwin && stdenv.isAarch64) [ autoSignDarwinBinariesHook ]
|
||||||
|
++ optionals withGui [ wrapQtAppsHook ];
|
||||||
|
|
||||||
configureFlags = [ "--with-incompatible-bdb"
|
buildInputs = [ boost libevent miniupnpc zeromq zlib ]
|
||||||
"--with-boost-libdir=${boost.out}/lib" ];
|
++ optionals withWallet [ db48 sqlite ]
|
||||||
|
++ optionals withGui [ qrencode qtbase qttools ];
|
||||||
|
|
||||||
meta = with lib; {
|
configureFlags = [
|
||||||
description = "An enhanced Bitcoin node software";
|
"--with-boost-libdir=${boost.out}/lib"
|
||||||
|
"--disable-bench"
|
||||||
|
] ++ optionals (!doCheck) [
|
||||||
|
"--disable-tests"
|
||||||
|
"--disable-gui-tests"
|
||||||
|
] ++ optionals (!withWallet) [
|
||||||
|
"--disable-wallet"
|
||||||
|
] ++ optionals withGui [
|
||||||
|
"--with-gui=qt5"
|
||||||
|
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [ python3 ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
checkFlags =
|
||||||
|
[ "LC_ALL=en_US.UTF-8" ]
|
||||||
|
# QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI.
|
||||||
|
# See also https://github.com/NixOS/nixpkgs/issues/24256
|
||||||
|
++ optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}";
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
smoke-test = nixosTests.bitcoind-knots;
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A derivative of Bitcoin Core with a collection of improvements";
|
||||||
homepage = "https://bitcoinknots.org/";
|
homepage = "https://bitcoinknots.org/";
|
||||||
|
maintainers = with maintainers; [ prusnak mmahut ];
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.mmahut ];
|
platforms = platforms.unix;
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ stdenv.mkDerivation rec {
|
|||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
checkFlags =
|
checkFlags =
|
||||||
[ "LC_ALL=C.UTF-8" ]
|
[ "LC_ALL=en_US.UTF-8" ]
|
||||||
# QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI.
|
# QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI.
|
||||||
# See also https://github.com/NixOS/nixpkgs/issues/24256
|
# See also https://github.com/NixOS/nixpkgs/issues/24256
|
||||||
++ optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}";
|
++ optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}";
|
||||||
|
@ -29566,7 +29566,12 @@ with pkgs;
|
|||||||
inherit (darwin) autoSignDarwinBinariesHook;
|
inherit (darwin) autoSignDarwinBinariesHook;
|
||||||
};
|
};
|
||||||
|
|
||||||
bitcoind-knots = callPackage ../applications/blockchains/bitcoin-knots { miniupnpc = miniupnpc_2; };
|
bitcoind-knots = callPackage ../applications/blockchains/bitcoin-knots {
|
||||||
|
boost = boost17x;
|
||||||
|
miniupnpc = miniupnpc_2;
|
||||||
|
withGui = false;
|
||||||
|
inherit (darwin) autoSignDarwinBinariesHook;
|
||||||
|
};
|
||||||
|
|
||||||
cgminer = callPackage ../applications/blockchains/cgminer { };
|
cgminer = callPackage ../applications/blockchains/cgminer { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user