buildRosPackage: Improve Python wrapping script readability

Co-authored-by: Michal Sojka <michal.sojka@cvut.cz>
This commit is contained in:
hacker1024 2023-09-02 09:00:41 +00:00 committed by Ben Wolsieffer
parent 54e1294c05
commit a9c2a1021c

View file

@ -57,8 +57,8 @@ else stdenv.mkDerivation) (args // {
postFixup = ''
${postFixup}
find "$out/lib" -mindepth 1 -maxdepth 1 -type d ! -name '${pythonPackages.python.libPrefix}' -print0 | while read -d '''''' d; do
wrapPythonProgramsIn "$d" "$out $pythonPath"
find "$out/lib" -mindepth 1 -maxdepth 1 -type d ! -name '${pythonPackages.python.libPrefix}' -print0 | while read -d "" libpkgdir; do
wrapPythonProgramsIn "$libpkgdir" "$out $pythonPath"
done
'';
})