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

38 lines
921 B
Nix
Raw Normal View History

{ stdenv, lib, config, fetchFromGitHub, autoconf, automake, pcre
, confFile ? config.watchman.confFile or null
}:
stdenv.mkDerivation rec {
name = "watchman-${version}";
2015-10-23 18:02:56 +00:00
version = "4.1.0";
src = fetchFromGitHub {
owner = "facebook";
repo = "watchman";
rev = "v${version}";
2015-10-23 18:02:56 +00:00
sha256 = "01ak2gsmc76baswpivzz00g22r547mpp8l7xfziwl5804nzszrcg";
};
buildInputs = [ autoconf automake pcre ];
configureFlags = [
"--enable-lenient"
"--enable-conffile=${if confFile == null then "no" else confFile}"
"--with-pcre=yes"
2015-10-23 18:02:56 +00: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;
};
}