mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
07d037f2e1
watchman was upgraded significantly during the last #14944 (4.9.0 (Aug 16, 2017) to 2023.01.30.00 - 6 years between): status-im/nixpkgs@4e9c02b Probably causing developers to have "too many files open" issue #16341 This PR is an attempt to fix the issue by downgrading the watchman Signed-off-by: Jakub Sokołowski <jakub@status.im>
49 lines
1.3 KiB
Nix
49 lines
1.3 KiB
Nix
{ stdenv, lib, config, fetchFromGitHub, autoconf, automake, pcre
|
|
, libtool, pkg-config, openssl
|
|
, confFile ? config.watchman.confFile or null
|
|
, withApple ? stdenv.isDarwin, CoreServices
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "watchman";
|
|
version = "4.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "facebook";
|
|
repo = "watchman";
|
|
rev = "v${version}";
|
|
sha256 = "0fdaj5pmicm6j17d5q7px800m5rmam1a400x3hv1iiifnmhgnkal";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoconf automake pkg-config libtool ];
|
|
buildInputs = [ pcre openssl ]
|
|
#++ lib.optionals withApple [ CoreServices ];
|
|
++ lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
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;
|
|
};
|
|
}
|