diff --git a/pkgs/development/libraries/check/default.nix b/pkgs/development/libraries/check/default.nix index 3841878341c1..3bfcde57422d 100644 --- a/pkgs/development/libraries/check/default.nix +++ b/pkgs/development/libraries/check/default.nix @@ -1,4 +1,6 @@ -{ fetchurl, stdenv }: +{ fetchurl, stdenv +, CoreServices +}: stdenv.mkDerivation rec { name = "check-${version}"; @@ -12,6 +14,8 @@ stdenv.mkDerivation rec { # Test can randomly fail: http://hydra.nixos.org/build/7243912 doCheck = false; + buildInputs = stdenv.lib.optional stdenv.isDarwin CoreServices; + meta = with stdenv.lib; { description = "Unit testing framework for C"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index da80a4ee8cb4..18c1d365e702 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6049,7 +6049,9 @@ let cgui = callPackage ../development/libraries/cgui {}; - check = callPackage ../development/libraries/check { }; + check = callPackage ../development/libraries/check { + inherit (darwin.apple_sdk.frameworks) CoreServices; + }; chipmunk = callPackage ../development/libraries/chipmunk {};