1 { stdenv, lib, config, fetchFromGitHub, autoconf, automake, pcre
2 , libtool, pkg-config, openssl
3 , confFile ? config.watchman.confFile or null
4 , withApple ? stdenv.isDarwin, CoreServices
7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 sha256 = "0fdaj5pmicm6j17d5q7px800m5rmam1a400x3hv1iiifnmhgnkal";
18 nativeBuildInputs = [ autoconf automake pkg-config libtool ];
19 buildInputs = [ pcre openssl ]
20 ++ lib.optionals withApple [ CoreServices ];
24 "--enable-conffile=${if confFile == null then "no" else confFile}"
27 # For security considerations re: --disable-statedir, see:
28 # https://github.com/facebook/watchman/issues/178
41 description = "Watches files and takes action when they change";
42 homepage = "https://facebook.github.io/watchman";
43 maintainers = with maintainers; [ cstrahan ];
44 platforms = with platforms; linux ++ darwin;
45 license = licenses.asl20;