git.iko.soy/typeable/nixpkgs
on master help sign in
pyre: fix watchman references
commit485bf85407ea79cd7fdfcab2fde983e9a3d85f0e authorMario Rodas <marsam@users.noreply.github.com> dateFri 21 Dec 2018, 08:22 (8 years ago) parent594fd0f
1 file changed+6−2
pkgs/development/tools/pyre/default.nix+6−2
pkgs/development/tools/pyre/default.nix+6−2
@@ -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 \