unicorn: fix darwin build (#146346)
commitc138eff31574ff1b89ffd5132af7df30c0bfaa4a
authorAndrew Childs <andrew.childs@bibo.com.ph>
dateWed 17 Nov 2021, 15:08 (5 years ago)
parent7eea330
pkgs/development/libraries/unicorn/default.nix+2
@@ -2,6 +2,7 @@
22, fetchFromGitHub
33, pkg-config
44, cmake
5+, IOKit
56}:
67
78stdenv.mkDerivation rec {
@@ -16,6 +17,7 @@ stdenv.mkDerivation rec {
1617 };
1718
1819 nativeBuildInputs = [ pkg-config cmake ];
20+ buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];
1921
2022 meta = with lib; {
2123 description = "Lightweight multi-platform CPU emulator library";
pkgs/top-level/all-packages.nix+3−1
@@ -10647,7 +10647,9 @@ with pkgs;
1064710647 withRedis = true;
1064810648 };
1064910649
10650− unicorn = callPackage ../development/libraries/unicorn { };
10650+ unicorn = callPackage ../development/libraries/unicorn {
10651+ inherit (darwin.apple_sdk.frameworks) IOKit;
10652+ };
1065110653
1065210654 units = callPackage ../tools/misc/units {
1065310655 enableCurrenciesUpdater = true;