nixpkgs/pkgs/development/tools/watchman/default.nix

41 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, lib, config, fetchFromGitHub, autoconf, automake, pcre
, confFile ? config.watchman.confFile or null
}:
stdenv.mkDerivation rec {
name = "watchman-${version}";
2016-12-13 16:27:21 +01:00
version = "4.7.0";
src = fetchFromGitHub {
owner = "facebook";
repo = "watchman";
rev = "v${version}";
2016-12-13 16:27:21 +01:00
sha256 = "0xnd7jvrmyxhlw2ggd37swv1mk6vw9j91fdxps6njgvnlfg9zs5n";
};
buildInputs = [ autoconf automake pcre ];
configureFlags = [
"--enable-lenient"
"--enable-conffile=${if confFile == null then "no" else confFile}"
"--with-pcre=yes"
# For security considerations re: --disable-statedir, see:
# https://github.com/facebook/watchman/issues/178
2015-10-23 20:02:56 +02:00
"--disable-statedir"
];
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;
};
}