monero: fix darwin build

/cc ZHF #36454
This commit is contained in:
Daiderd Jordan 2018-03-21 22:41:26 +01:00
parent d6a0652d6d
commit 5d4d4df8c0
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,6 @@
{ stdenv, fetchpatch, fetchFromGitHub, cmake
, boost, miniupnpc, openssl, pkgconfig, unbound
, IOKit
}:
stdenv.mkDerivation rec {
@ -15,7 +16,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ boost miniupnpc openssl unbound ];
buildInputs = [ boost miniupnpc openssl unbound ]
++ stdenv.lib.optional stdenv.isDarwin IOKit;
patches = [
./build-wallet-rpc.patch # fixed in next release

View file

@ -16614,7 +16614,9 @@ with pkgs;
mod-distortion = callPackage ../applications/audio/mod-distortion { };
monero = callPackage ../applications/altcoins/monero { };
monero = callPackage ../applications/altcoins/monero {
inherit (darwin.apple_sdk.frameworks) IOKit;
};
monero-gui = libsForQt5.callPackage ../applications/altcoins/monero-gui { };