diff options
-rw-r--r-- | pkgs/development/tools/watchman/default.nix | 6 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
2 files changed, 8 insertions, 3 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 = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fa6cbc7a4d3..c573bc6fabc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 {}; |