pyre: fix watchman references
This commit is contained in:
parent
594fd0ff6e
commit
485bf85407
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchFromGitHub, ocamlPackages, makeWrapper, writeScript
|
{ stdenv, fetchFromGitHub, ocamlPackages, writeScript
|
||||||
, dune, python3, rsync, fetchpatch, buck }:
|
, dune, python3, rsync, buck, watchman }:
|
||||||
let
|
let
|
||||||
# Manually set version - the setup script requires
|
# Manually set version - the setup script requires
|
||||||
# hg and git + keeping the .git directory around.
|
# hg and git + keeping the .git directory around.
|
||||||
|
@ -103,6 +103,10 @@ in python3.pkgs.buildPythonApplication rec {
|
||||||
substituteInPlace scripts/build-pypi-package.sh \
|
substituteInPlace scripts/build-pypi-package.sh \
|
||||||
--replace 'NIX_BINARY_FILE' '${pyre-bin}/bin/pyre.bin' \
|
--replace 'NIX_BINARY_FILE' '${pyre-bin}/bin/pyre.bin' \
|
||||||
--replace 'BUILD_ROOT="$(mktemp -d)"' "BUILD_ROOT=$PWD/build"
|
--replace 'BUILD_ROOT="$(mktemp -d)"' "BUILD_ROOT=$PWD/build"
|
||||||
|
for file in client/pyre.py client/commands/initialize.py client/commands/tests/initialize_test.py; do
|
||||||
|
substituteInPlace "$file" \
|
||||||
|
--replace '"watchman"' '"${watchman}/bin/watchman"'
|
||||||
|
done
|
||||||
substituteInPlace client/buck.py \
|
substituteInPlace client/buck.py \
|
||||||
--replace '"buck"' '"${buck}/bin/buck"'
|
--replace '"buck"' '"${buck}/bin/buck"'
|
||||||
substituteInPlace client/tests/buck_test.py \
|
substituteInPlace client/tests/buck_test.py \
|
||||||
|
|
Loading…
Reference in a new issue