diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2020-12-13 16:53:02 +0100 |
---|---|---|
committer | Pavol Rusnak <pavol@rusnak.io> | 2021-01-16 18:14:48 +0100 |
commit | 672607c41f28570ea435989ac9f470e528a062ff (patch) | |
tree | 5061db2126d7920b32ed912a8206bd31487182fc /pkgs/applications/blockchains | |
parent | afd7b550da9f0a000ac46a8821971f5cfd18e86a (diff) |
bitcoin: introduce withWallet flag, allow building without wallet
Diffstat (limited to 'pkgs/applications/blockchains')
-rw-r--r-- | pkgs/applications/blockchains/bitcoin.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/applications/blockchains/bitcoin.nix b/pkgs/applications/blockchains/bitcoin.nix index 80e935f2b1a8..3bda048a0cf3 100644 --- a/pkgs/applications/blockchains/bitcoin.nix +++ b/pkgs/applications/blockchains/bitcoin.nix @@ -1,6 +1,6 @@ { stdenv , fetchurl -, pkgconfig +, pkg-config , autoreconfHook , db48 , boost @@ -16,6 +16,7 @@ , qrencode , libevent , withGui +, withWallet ? true }: with stdenv.lib; @@ -40,11 +41,12 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = - [ pkgconfig autoreconfHook ] + [ pkg-config autoreconfHook ] ++ optional stdenv.isDarwin hexdump ++ optional withGui wrapQtAppsHook; - buildInputs = [ db48 boost zlib zeromq miniupnpc libevent ] + buildInputs = [ boost zlib zeromq miniupnpc libevent ] ++ optionals stdenv.isLinux [ util-linux ] + ++ optionals withWallet [ db48 ] ++ optionals withGui [ qtbase qttools qrencode ]; postInstall = optional withGui '' @@ -58,8 +60,9 @@ stdenv.mkDerivation rec { ] ++ optionals (!doCheck) [ "--disable-tests" "--disable-gui-tests" - ] - ++ optionals withGui [ + ] ++ optionals (!withWallet) [ + "--disable-wallet" + ] ++ optionals withGui [ "--with-gui=qt5" "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" ]; @@ -87,7 +90,7 @@ stdenv.mkDerivation rec { homepage = "https://bitcoin.org/"; downloadPage = "https://bitcoincore.org/bin/bitcoin-core-${version}/"; changelog = "https://bitcoincore.org/en/releases/${version}/"; - maintainers = with maintainers; [ roconnor ]; + maintainers = with maintainers; [ prusnak roconnor ]; license = licenses.mit; platforms = platforms.unix; }; |