git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #39310 from Mic92/bitcoin-fixes

bitcoin-{unlimited,xt}: fix darwin

commitd52e5da7857b172f92003f3cb1ebd7d9c0d79af5 authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 23 Apr 2018, 08:36 (9 years ago) parent635f24d46425a6
3 files changed+27−11
pkgs/applications/altcoins/bitcoin-unlimited.nix+6−4 pkgs/applications/altcoins/bitcoin-xt.nix+5−3 pkgs/applications/altcoins/default.nix+16−4
pkgs/applications/altcoins/bitcoin-unlimited.nix+6−4
@@ -1,6 +1,7 @@
11{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
22, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, libevent
3−, withGui }:
3+, withGui
4+, Foundation, ApplicationServices, AppKit }:
45
56with stdenv.lib;
67
@@ -19,7 +20,8 @@ stdenv.mkDerivation rec {
1920 nativeBuildInputs = [ pkgconfig autoreconfHook ];
2021 buildInputs = [ openssl db48 boost zlib
2122 miniupnpc utillinux protobuf libevent ]
22− ++ optionals withGui [ qt4 qrencode ];
23+ ++ optionals withGui [ qt4 qrencode ]
24+ ++ optionals stdenv.isDarwin [ Foundation ApplicationServices AppKit ];
2325
2426 patches = [
2527 ./bitcoin-unlimited-const-comparators.patch
@@ -36,7 +38,7 @@ stdenv.mkDerivation rec {
3638 completely decentralized, without the need for a central server or trusted
3739 parties. Users hold the crypto keys to their own money and transact directly
3840 with each other, with the help of a P2P network to check for double-spending.
39−
41+
4042 The Bitcoin Unlimited (BU) project seeks to provide a voice to all
4143 stakeholders in the Bitcoin ecosystem.
4244
@@ -55,7 +57,7 @@ stdenv.mkDerivation rec {
5557
5658 If you support an increase in the blocksize limit by any means - or just
5759 support Bitcoin conflict resolution as originally envisioned by its founder -
58− consider running a Bitcoin Unlimited client.
60+ consider running a Bitcoin Unlimited client.
5961 '';
6062 homepage = https://www.bitcoinunlimited.info/;
6163 maintainers = with maintainers; [ DmitryTsygankov ];
pkgs/applications/altcoins/bitcoin-xt.nix+5−3
@@ -1,6 +1,7 @@
11{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
22, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, curl, libevent
3−, withGui }:
3+, withGui
4+, Foundation, ApplicationServices, AppKit }:
45
56with stdenv.lib;
67stdenv.mkDerivation rec{
@@ -18,7 +19,8 @@ stdenv.mkDerivation rec{
1819 nativeBuildInputs = [ pkgconfig autoreconfHook ];
1920 buildInputs = [ openssl db48 boost zlib libevent
2021 miniupnpc utillinux protobuf curl ]
21− ++ optionals withGui [ qt4 qrencode ];
22+ ++ optionals withGui [ qt4 qrencode ]
23+ ++ optionals stdenv.isDarwin [ Foundation ApplicationServices AppKit ];
2224
2325 configureFlags = [
2426 "--with-boost-libdir=${boost.out}/lib"
@@ -36,7 +38,7 @@ stdenv.mkDerivation rec{
3638 Bitcoin XT is an implementation of a Bitcoin full node, based upon the
3739 source code of Bitcoin Core. It is built by taking the latest stable
3840 Core release, applying a series of patches, and then doing deterministic
39− builds so anyone can check the downloads correspond to the source code.
41+ builds so anyone can check the downloads correspond to the source code.
4042 '';
4143 homepage = https://bitcoinxt.software/;
4244 maintainers = with maintainers; [ jefdaj ];
pkgs/applications/altcoins/default.nix+16−4
@@ -10,14 +10,26 @@ rec {
1010 bitcoin-abc = libsForQt5.callPackage ./bitcoin-abc.nix { boost = boost165; withGui = true; };
1111 bitcoind-abc = callPackage ./bitcoin-abc.nix { boost = boost165; withGui = false; };
1212
13− bitcoin-unlimited = callPackage ./bitcoin-unlimited.nix { withGui = true; };
14− bitcoind-unlimited = callPackage ./bitcoin-unlimited.nix { withGui = false; };
13+ bitcoin-unlimited = callPackage ./bitcoin-unlimited.nix {
14+ inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
15+ withGui = true;
16+ };
17+ bitcoind-unlimited = callPackage ./bitcoin-unlimited.nix {
18+ inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
19+ withGui = false;
20+ };
1521
1622 bitcoin-classic = libsForQt5.callPackage ./bitcoin-classic.nix { boost = boost165; withGui = true; };
1723 bitcoind-classic = callPackage ./bitcoin-classic.nix { boost = boost165; withGui = false; };
1824
19− bitcoin-xt = callPackage ./bitcoin-xt.nix { boost = boost165; withGui = true; };
20− bitcoind-xt = callPackage ./bitcoin-xt.nix { boost = boost165; withGui = false; };
25+ bitcoin-xt = callPackage ./bitcoin-xt.nix {
26+ inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
27+ boost = boost165; withGui = true;
28+ };
29+ bitcoind-xt = callPackage ./bitcoin-xt.nix {
30+ inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
31+ boost = boost165; withGui = false;
32+ };
2133
2234 btc1 = callPackage ./btc1.nix { boost = boost165; withGui = true; };
2335 btc1d = callPackage ./btc1.nix { boost = boost165; withGui = false; };