@@ -1,5 +1,5 @@
1−{ stdenv, fetchFromGitHub, ocamlPackages, makeWrapper, writeScript
2−, dune, python3, rsync, fetchpatch, buck }:
1+{ stdenv, fetchFromGitHub, ocamlPackages, writeScript
2+, dune, python3, rsync, buck, watchman }:
33let
44 # Manually set version - the setup script requires
55 # hg and git + keeping the .git directory around.
@@ -103,6 +103,10 @@ in python3.pkgs.buildPythonApplication rec {
103103 substituteInPlace scripts/build-pypi-package.sh \
104104 --replace 'NIX_BINARY_FILE' '${pyre-bin}/bin/pyre.bin' \
105105 --replace 'BUILD_ROOT="$(mktemp -d)"' "BUILD_ROOT=$PWD/build"
106+ for file in client/pyre.py client/commands/initialize.py client/commands/tests/initialize_test.py; do
107+ substituteInPlace "$file" \
108+ --replace '"watchman"' '"${watchman}/bin/watchman"'
109+ done
106110 substituteInPlace client/buck.py \
107111 --replace '"buck"' '"${buck}/bin/buck"'
108112 substituteInPlace client/tests/buck_test.py \