Skip to content

Commit

Permalink
carla: properly wrap plugin programs. fixes NixOS#67923
Browse files Browse the repository at this point in the history
  • Loading branch information
minijackson committed Sep 14, 2019
1 parent 5616f99 commit 8f32a16
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/applications/audio/carla/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ stdenv.mkDerivation rec {
postFixup = ''
# Also sets program_PYTHONPATH and program_PATH variables
wrapPythonPrograms
wrapPythonProgramsIn "$out/share/carla/resources" "$out $pythonPath"
find "$out/share/carla" -maxdepth 1 -type f -not -name "*.py" -print0 | while read -d "" f; do
patchPythonScript "$f"
Expand All @@ -58,6 +59,12 @@ stdenv.mkDerivation rec {
--prefix PATH : "$program_PATH:${which}/bin" \
--set PYTHONNOUSERSITE true
done
find "$out/share/carla/resources" -maxdepth 1 -type f -not -name "*.py" -print0 | while read -d "" f; do
wrapQtApp "$f" \
--prefix PATH : "$program_PATH:${which}/bin" \
--set PYTHONNOUSERSITE true
done
'';

meta = with stdenv.lib; {
Expand Down

0 comments on commit 8f32a16

Please sign in to comment.