nixpkgs/pkgs/development/tools/build-managers/bazel
Andreas Herrmann f426173e30 bazel: Fix python stub template
The shebang in the python stub template was incorrectly patched to
```
<store-path>/bin/env python
```
instead of
```
<store-path>/bin/python
```

The reason was that `patchShebangs` was called with `--replace` which is
an unknown argument.
```
patching script interpreter paths in src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt --replace /usr/bin/env python /nix/store/w7gsq8v86hni4ynaqgwwlnlny115ylng-python3-3.7.4/bin/python
find: unknown predicate `--replace'
```

Using `substituteInPlace` instead resolves that issue.

The wrong shebang caused failures of `py_binary` targets due to `python`
not being in `PATH` in certain circumstances.
2019-08-16 18:55:45 +02:00
..
bazel-deps bazel-deps: 2019-02-01 -> 2019-07-11, mark as broken 2019-07-25 17:40:46 +02:00
bazel-remote bazel-remote: mark as broken 2019-07-25 17:40:46 +02:00
buildtools bazel-buildtools: 0.22.0 -> 0.28.0 2019-07-24 18:57:52 +02:00
0.4.nix bazel_0_4: mark as broken 2018-08-07 16:53:36 +02:00
bash-tools-test.nix treewide: remove unused variables (#63177) 2019-06-16 19:59:05 +00:00
cpp-test.nix bazel: fix the compilation of .proto on Darwin (#63879) 2019-06-29 11:07:21 -07:00
default.nix bazel: Fix python stub template 2019-08-16 18:55:45 +02:00
java-test.nix bazel: add a test asserting java and java proto (#63927) 2019-07-01 21:18:02 -07:00
nix-hacks-0.4.patch bazel: Bump nix-hacks.patch for 0.9. 2018-01-18 10:25:47 -05:00
nix-hacks.patch buildBazelPackage: clear markers 2019-07-31 11:28:06 +03:00
protobuf-test.nix bazel: add a test asserting java and java proto (#63927) 2019-07-01 21:18:02 -07:00
python-bin-path-test.nix bazel: fix the compilation of .proto on Darwin (#63879) 2019-06-29 11:07:21 -07:00
src-deps.json bazel: 0.27.0 -> 0.28.0 2019-07-16 17:43:18 +02:00
trim-last-argument-to-gcc-if-empty.patch bazel: fix the compilation of .proto on Darwin (#63879) 2019-06-29 11:07:21 -07:00
update-srcDeps.py bazel: add update script to update srcDeps from WORKSPACE file 2019-06-18 17:47:01 +02:00