watchman: add fsevents support

macOS needs apple sdks for fsevents support

Fixes #14309

+8 -3
+4 -2
pkgs/development/tools/watchman/default.nix
··· 1 1 { stdenv, lib, config, fetchFromGitHub, autoconf, automake, pcre, 2 2 libtool, pkgconfig, openssl, 3 - confFile ? config.watchman.confFile or null 3 + confFile ? config.watchman.confFile or null, 4 + withApple ? stdenv.isDarwin, CoreServices, CoreFoundation 4 5 }: 5 6 6 7 stdenv.mkDerivation rec { ··· 15 16 sha256 = "0fdaj5pmicm6j17d5q7px800m5rmam1a400x3hv1iiifnmhgnkal"; 16 17 }; 17 18 18 - buildInputs = [ pcre openssl ]; 19 + buildInputs = [ pcre openssl ] 20 + ++ lib.optionals withApple [ CoreFoundation CoreServices ]; 19 21 nativeBuildInputs = [ autoconf automake pkgconfig libtool ]; 20 22 21 23 configureFlags = [
+4 -1
pkgs/top-level/all-packages.nix
··· 5481 5481 5482 5482 watchexec = callPackage ../tools/misc/watchexec { }; 5483 5483 5484 - watchman = callPackage ../development/tools/watchman { }; 5484 + watchman = callPackage ../development/tools/watchman { 5485 + inherit (darwin.apple_sdk.frameworks) CoreServices; 5486 + CoreFoundation = darwin.cf-private; 5487 + }; 5485 5488 5486 5489 wavefunctioncollapse = callPackage ../tools/graphics/wavefunctioncollapse {}; 5487 5490