@@ -160,7 +160,9 @@ self: super: {
160160 # FSEvents API is very buggy and tests are unreliable. See
161161 # http://openradar.appspot.com/10207999 and similar issues.
162162 # https://github.com/haskell-fswatch/hfsnotify/issues/62
163− fsnotify = dontCheck super.fsnotify; # if pkgs.stdenv.isDarwin then dontCheck super.fsnotify else super.fsnotify;
163+ fsnotify = if pkgs.stdenv.isDarwin
164+ then addBuildDepend (dontCheck super.fsnotify) pkgs.darwin.apple_sdk.frameworks.Cocoa
165+ else dontCheck super.fsnotify;
164166
165167 # the system-fileio tests use canonicalizePath, which fails in the sandbox
166168 system-fileio = if pkgs.stdenv.isDarwin then dontCheck super.system-fileio else super.system-fileio;