1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
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
bash-tools-test.nix
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
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