mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
pythonPackages.wrapPython: fix for paths with spaces
This commit is contained in:
parent
fca09185d0
commit
7cbe538e94
@ -47,7 +47,7 @@ wrapPythonProgramsIn() {
|
||||
buildPythonPath "$pythonPath"
|
||||
|
||||
# Find all regular files in the output directory that are executable.
|
||||
for f in $(find "$dir" -type f -perm -0100); do
|
||||
find "$dir" -type f -perm -0100 -print0 | while read -d "" f; do
|
||||
# Rewrite "#! .../env python" to "#! /nix/store/.../python".
|
||||
# Strip suffix, like "3" or "2.7m" -- we don't have any choice on which
|
||||
# Python to use besides one with this hook anyway.
|
||||
|
Loading…
Reference in New Issue
Block a user