Merge pull request #106837 from prusnak/bitcoin-no-wallet
bitcoin: 0.20.1 -> 0.21.0 + allow build without wallet
This commit is contained in:
commit
50cbe8b517
|
@ -1,8 +1,9 @@
|
||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, pkgconfig
|
, pkg-config
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, db48
|
, db48
|
||||||
|
, sqlite
|
||||||
, boost
|
, boost
|
||||||
, zeromq
|
, zeromq
|
||||||
, hexdump
|
, hexdump
|
||||||
|
@ -16,11 +17,12 @@
|
||||||
, qrencode
|
, qrencode
|
||||||
, libevent
|
, libevent
|
||||||
, withGui
|
, withGui
|
||||||
|
, withWallet ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
version = "0.20.1";
|
version = "0.21.0";
|
||||||
majorMinorVersion = versions.majorMinor version;
|
majorMinorVersion = versions.majorMinor version;
|
||||||
desktop = fetchurl {
|
desktop = fetchurl {
|
||||||
url = "https://raw.githubusercontent.com/bitcoin-core/packaging/${majorMinorVersion}/debian/bitcoin-qt.desktop";
|
url = "https://raw.githubusercontent.com/bitcoin-core/packaging/${majorMinorVersion}/debian/bitcoin-qt.desktop";
|
||||||
|
@ -36,15 +38,16 @@ stdenv.mkDerivation rec {
|
||||||
"https://bitcoincore.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
|
"https://bitcoincore.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
|
||||||
"https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
|
"https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
|
||||||
];
|
];
|
||||||
sha256 = "4bbd62fd6acfa5e9864ebf37a24a04bc2dcfe3e3222f056056288d854c53b978";
|
sha256 = "1a91202c62ee49fb64d57a52b8d6d01cd392fffcbef257b573800f9289655f37";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
[ pkgconfig autoreconfHook ]
|
[ pkg-config autoreconfHook ]
|
||||||
++ optional stdenv.isDarwin hexdump
|
++ optional stdenv.isDarwin hexdump
|
||||||
++ optional withGui wrapQtAppsHook;
|
++ optional withGui wrapQtAppsHook;
|
||||||
buildInputs = [ db48 boost zlib zeromq miniupnpc libevent ]
|
buildInputs = [ boost zlib zeromq miniupnpc libevent ]
|
||||||
++ optionals stdenv.isLinux [ util-linux ]
|
++ optionals stdenv.isLinux [ util-linux ]
|
||||||
|
++ optionals withWallet [ db48 sqlite ]
|
||||||
++ optionals withGui [ qtbase qttools qrencode ];
|
++ optionals withGui [ qtbase qttools qrencode ];
|
||||||
|
|
||||||
postInstall = optional withGui ''
|
postInstall = optional withGui ''
|
||||||
|
@ -58,8 +61,9 @@ stdenv.mkDerivation rec {
|
||||||
] ++ optionals (!doCheck) [
|
] ++ optionals (!doCheck) [
|
||||||
"--disable-tests"
|
"--disable-tests"
|
||||||
"--disable-gui-tests"
|
"--disable-gui-tests"
|
||||||
]
|
] ++ optionals (!withWallet) [
|
||||||
++ optionals withGui [
|
"--disable-wallet"
|
||||||
|
] ++ optionals withGui [
|
||||||
"--with-gui=qt5"
|
"--with-gui=qt5"
|
||||||
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
||||||
];
|
];
|
||||||
|
@ -87,7 +91,7 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "https://bitcoin.org/";
|
homepage = "https://bitcoin.org/";
|
||||||
downloadPage = "https://bitcoincore.org/bin/bitcoin-core-${version}/";
|
downloadPage = "https://bitcoincore.org/bin/bitcoin-core-${version}/";
|
||||||
changelog = "https://bitcoincore.org/en/releases/${version}/";
|
changelog = "https://bitcoincore.org/en/releases/${version}/";
|
||||||
maintainers = with maintainers; [ roconnor ];
|
maintainers = with maintainers; [ prusnak roconnor ];
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue