mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-12 02:34:50 +03:00
Wrap ROS Python scripts
This commit is contained in:
parent
dc92e61225
commit
8f7ca8f00f
1 changed files with 11 additions and 1 deletions
|
@ -11,7 +11,8 @@
|
|||
, dontWrapQtApps ? true
|
||||
, nativeBuildInputs ? [ ]
|
||||
, CXXFLAGS ? ""
|
||||
, passthru ? {}
|
||||
, postFixup ? ""
|
||||
, passthru ? { }
|
||||
, ...
|
||||
}@args:
|
||||
|
||||
|
@ -36,6 +37,8 @@ else stdenv.mkDerivation) (args // {
|
|||
|
||||
nativeBuildInputs = nativeBuildInputs ++ [ pythonPackages.setuptools ];
|
||||
|
||||
dontWrapPythonPrograms = true;
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
|
@ -53,4 +56,11 @@ else stdenv.mkDerivation) (args // {
|
|||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
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"
|
||||
done
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue