unicorn: fix darwin build (#146346)

This commit is contained in:
Andrew Childs
2021-11-17 15:08:03 +09:00
committed by GitHub
parent 7eea330318
commit c138eff315
2 changed files with 5 additions and 1 deletions
@@ -2,6 +2,7 @@
, fetchFromGitHub
, pkg-config
, cmake
, IOKit
}:
stdenv.mkDerivation rec {
@@ -16,6 +17,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkg-config cmake ];
buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];
meta = with lib; {
description = "Lightweight multi-platform CPU emulator library";
+3 -1
View File
@@ -10647,7 +10647,9 @@ with pkgs;
withRedis = true;
};
unicorn = callPackage ../development/libraries/unicorn { };
unicorn = callPackage ../development/libraries/unicorn {
inherit (darwin.apple_sdk.frameworks) IOKit;
};
units = callPackage ../tools/misc/units {
enableCurrenciesUpdater = true;