mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-14 03:28:39 +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
|
, dontWrapQtApps ? true
|
||||||
, nativeBuildInputs ? [ ]
|
, nativeBuildInputs ? [ ]
|
||||||
, CXXFLAGS ? ""
|
, CXXFLAGS ? ""
|
||||||
, passthru ? {}
|
, postFixup ? ""
|
||||||
|
, passthru ? { }
|
||||||
, ...
|
, ...
|
||||||
}@args:
|
}@args:
|
||||||
|
|
||||||
|
@ -36,6 +37,8 @@ else stdenv.mkDerivation) (args // {
|
||||||
|
|
||||||
nativeBuildInputs = nativeBuildInputs ++ [ pythonPackages.setuptools ];
|
nativeBuildInputs = nativeBuildInputs ++ [ pythonPackages.setuptools ];
|
||||||
|
|
||||||
|
dontWrapPythonPrograms = true;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
||||||
|
@ -53,4 +56,11 @@ else stdenv.mkDerivation) (args // {
|
||||||
|
|
||||||
runHook postInstall
|
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