2014-07-05 22:34:51 +02:00
|
|
|
{ stdenv, lib, config, fetchFromGitHub, autoconf, automake, pcre
|
|
|
|
, confFile ? config.watchman.confFile or null
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "watchman-${version}";
|
|
|
|
|
2015-01-14 03:48:44 +01:00
|
|
|
version = "3.0.0";
|
2014-07-05 22:34:51 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebook";
|
|
|
|
repo = "watchman";
|
|
|
|
rev = "v${version}";
|
2015-01-14 03:48:44 +01:00
|
|
|
sha256 = "0sf0cp9p7savlgmzqj5m9fkpfa5a15pv98rkilxnbmx9wrjvypwk";
|
2014-07-05 22:34:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ autoconf automake pcre ];
|
|
|
|
|
|
|
|
configureFlags = [
|
2014-08-11 06:18:57 +02:00
|
|
|
"--enable-lenient"
|
2014-07-05 22:34:51 +02:00
|
|
|
"--enable-conffile=${if confFile == null then "no" else confFile}"
|
|
|
|
"--with-pcre=yes"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Watches files and takes action when they change";
|
|
|
|
homepage = https://facebook.github.io/watchman;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|