diff --git a/pkgs/applications/altcoins/monero/default.nix b/pkgs/applications/altcoins/monero/default.nix index 4b1e9cd4ea3e..57a058bada6b 100644 --- a/pkgs/applications/altcoins/monero/default.nix +++ b/pkgs/applications/altcoins/monero/default.nix @@ -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 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 40824ac4efc3..1e3095ee7fcd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };