Skip to content

Commit

Permalink
watchman: add fsevents support
Browse files Browse the repository at this point in the history
macOS needs apple sdks for fsevents support

Fixes #14309
  • Loading branch information
matthewbauer committed May 16, 2018
1 parent b19c92b commit d6c9efa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/tools/watchman/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ stdenv, lib, config, fetchFromGitHub, autoconf, automake, pcre,
libtool, pkgconfig, openssl,
confFile ? config.watchman.confFile or null
confFile ? config.watchman.confFile or null,
withApple ? stdenv.isDarwin, CoreServices, CoreFoundation
}:

stdenv.mkDerivation rec {
Expand All @@ -15,7 +16,8 @@ stdenv.mkDerivation rec {
sha256 = "0fdaj5pmicm6j17d5q7px800m5rmam1a400x3hv1iiifnmhgnkal";
};

buildInputs = [ pcre openssl ];
buildInputs = [ pcre openssl ]
++ lib.optionals withApple [ CoreFoundation CoreServices ];
nativeBuildInputs = [ autoconf automake pkgconfig libtool ];

configureFlags = [
Expand Down
5 changes: 4 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5481,7 +5481,10 @@ with pkgs;

watchexec = callPackage ../tools/misc/watchexec { };

watchman = callPackage ../development/tools/watchman { };
watchman = callPackage ../development/tools/watchman {
inherit (darwin.apple_sdk.frameworks) CoreServices;
CoreFoundation = darwin.cf-private;
};

wavefunctioncollapse = callPackage ../tools/graphics/wavefunctioncollapse {};

Expand Down

0 comments on commit d6c9efa

Please sign in to comment.