Skip to content

Commit

Permalink
Merge pull request NixOS#68795 from minijackson/carla-fix-67923
Browse files Browse the repository at this point in the history
Carla: properly wrap plugin programs
  • Loading branch information
JohnAZoidberg committed Feb 28, 2020
2 parents 2bbdd94 + 8f32a16 commit 4dfb636
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/applications/audio/carla/default.nix
Expand Up @@ -39,12 +39,15 @@ stdenv.mkDerivation rec {
++ optional withGtk2 gtk2
++ optional withGtk3 gtk3;

enableParallelBuilding = true;

installFlags = [ "PREFIX=$(out)" ];

dontWrapQtApps = true;
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 @@ -56,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 4dfb636

Please sign in to comment.