unicorn: fix darwin build (#146346)

authored by Andrew Childs and committed by GitHub c138eff3 7eea3303

+5 -1
+2
pkgs/development/libraries/unicorn/default.nix
··· 2 2 , fetchFromGitHub 3 3 , pkg-config 4 4 , cmake 5 + , IOKit 5 6 }: 6 7 7 8 stdenv.mkDerivation rec { ··· 16 17 }; 17 18 18 19 nativeBuildInputs = [ pkg-config cmake ]; 20 + buildInputs = lib.optionals stdenv.isDarwin [ IOKit ]; 19 21 20 22 meta = with lib; { 21 23 description = "Lightweight multi-platform CPU emulator library";
+3 -1
pkgs/top-level/all-packages.nix
··· 10647 10647 withRedis = true; 10648 10648 }; 10649 10649 10650 - unicorn = callPackage ../development/libraries/unicorn { }; 10650 + unicorn = callPackage ../development/libraries/unicorn { 10651 + inherit (darwin.apple_sdk.frameworks) IOKit; 10652 + }; 10651 10653 10652 10654 units = callPackage ../tools/misc/units { 10653 10655 enableCurrenciesUpdater = true;