summary refs log tree commit diff
path: root/pkgs/development/tools/watchman
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-05-15 23:16:15 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-05-16 01:02:31 -0500
commitd6c9efa223a9bb39b38378b5ee5e7b5490a70071 (patch)
tree9f5b3404b0b4fac7e20e1668cb5ba845bbe4910c /pkgs/development/tools/watchman
parentb19c92be90df81ba6c030ca2df1ec22f586208de (diff)
downloadnixpkgs-d6c9efa223a9bb39b38378b5ee5e7b5490a70071.tar
nixpkgs-d6c9efa223a9bb39b38378b5ee5e7b5490a70071.tar.gz
nixpkgs-d6c9efa223a9bb39b38378b5ee5e7b5490a70071.tar.bz2
nixpkgs-d6c9efa223a9bb39b38378b5ee5e7b5490a70071.tar.lz
nixpkgs-d6c9efa223a9bb39b38378b5ee5e7b5490a70071.tar.xz
nixpkgs-d6c9efa223a9bb39b38378b5ee5e7b5490a70071.tar.zst
nixpkgs-d6c9efa223a9bb39b38378b5ee5e7b5490a70071.zip
watchman: add fsevents support
macOS needs apple sdks for fsevents support

Fixes #14309
Diffstat (limited to 'pkgs/development/tools/watchman')
-rw-r--r--pkgs/development/tools/watchman/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/tools/watchman/default.nix b/pkgs/development/tools/watchman/default.nix
index 15f265e31e3..b349ecf61e1 100644
--- a/pkgs/development/tools/watchman/default.nix
+++ b/pkgs/development/tools/watchman/default.nix
@@ -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 {
@@ -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 = [