mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ stdenv, lib, config, fetchFromGitHub, autoconf, automake, pcre,
|
|
libtool, pkgconfig, openssl,
|
|
confFile ? config.watchman.confFile or null
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "watchman-${version}";
|
|
|
|
version = "4.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "facebook";
|
|
repo = "watchman";
|
|
rev = "v${version}";
|
|
sha256 = "0fdaj5pmicm6j17d5q7px800m5rmam1a400x3hv1iiifnmhgnkal";
|
|
};
|
|
|
|
buildInputs = [ pcre openssl ];
|
|
nativeBuildInputs = [ autoconf automake pkgconfig libtool ];
|
|
|
|
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
|
|
"--disable-statedir"
|
|
];
|
|
|
|
prePatch = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|