mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
f426173e30
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. |
||
---|---|---|
.. | ||
androidndk-pkgs | ||
arduino | ||
beam-modules | ||
bower-modules/generic | ||
compilers | ||
coq-modules | ||
dhall-modules | ||
dotnet-modules/patches | ||
em-modules/generic | ||
go-modules | ||
go-packages | ||
guile-modules | ||
haskell-modules | ||
idris-modules | ||
interpreters | ||
java-modules | ||
libraries | ||
lisp-modules | ||
lua-modules | ||
misc | ||
mobile | ||
node-packages | ||
ocaml-modules | ||
perl-modules | ||
pharo | ||
pure-modules | ||
python-modules | ||
r-modules | ||
ruby-modules | ||
tools | ||
web |