about summary refs log tree commit diff
path: root/nixos/modules/module-list.nix
diff options
context:
space:
mode:
authorAndreas Herrmann <andreash87@gmx.ch>2019-08-16 14:10:27 +0200
committerProfpatsch <mail@profpatsch.de>2019-08-16 18:55:45 +0200
commitf426173e30d2f7dcc151b3d67a29ee6e8ca39c1a (patch)
tree34a4a0351ae1668d675ac07c317296714f19769d /nixos/modules/module-list.nix
parent332a46b125cea8c0fa04e194da43f765908a2e02 (diff)
downloadnixlib-f426173e30d2f7dcc151b3d67a29ee6e8ca39c1a.tar
nixlib-f426173e30d2f7dcc151b3d67a29ee6e8ca39c1a.tar.gz
nixlib-f426173e30d2f7dcc151b3d67a29ee6e8ca39c1a.tar.bz2
nixlib-f426173e30d2f7dcc151b3d67a29ee6e8ca39c1a.tar.lz
nixlib-f426173e30d2f7dcc151b3d67a29ee6e8ca39c1a.tar.xz
nixlib-f426173e30d2f7dcc151b3d67a29ee6e8ca39c1a.tar.zst
nixlib-f426173e30d2f7dcc151b3d67a29ee6e8ca39c1a.zip
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.
Diffstat (limited to 'nixos/modules/module-list.nix')
0 files changed, 0 insertions, 0 deletions