bitcoin: introduce withWallet flag, allow building without wallet
This commit is contained in:
parent
afd7b550da
commit
672607c41f
@ -1,6 +1,6 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, pkgconfig
|
, pkg-config
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, db48
|
, db48
|
||||||
, boost
|
, boost
|
||||||
@ -16,6 +16,7 @@
|
|||||||
, qrencode
|
, qrencode
|
||||||
, libevent
|
, libevent
|
||||||
, withGui
|
, withGui
|
||||||
|
, withWallet ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -40,11 +41,12 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
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 ]
|
||||||
++ optionals withGui [ qtbase qttools qrencode ];
|
++ optionals withGui [ qtbase qttools qrencode ];
|
||||||
|
|
||||||
postInstall = optional withGui ''
|
postInstall = optional withGui ''
|
||||||
@ -58,8 +60,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 +90,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…
x
Reference in New Issue
Block a user