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