diff options
author | Tobias Bora <tobias.bora@gmail.com> | 2021-10-01 09:47:33 +0200 |
---|---|---|
committer | Tobias Bora <tobias.bora@gmail.com> | 2021-10-04 11:04:52 +0200 |
commit | a89400db621a2d657c2adf2dc024065915996250 (patch) | |
tree | 2dcced6eadfbad900f134ba2b556073e30e26784 /pkgs | |
parent | 8d30ac220a3d9e77dc0880f8cc4d5623c5a3809e (diff) |
carla: fix --app-name for compatibility with NSM
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/audio/carla/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/audio/carla/default.nix b/pkgs/applications/audio/carla/default.nix index af43e40e2c13..2efd4c671841 100644 --- a/pkgs/applications/audio/carla/default.nix +++ b/pkgs/applications/audio/carla/default.nix @@ -44,6 +44,14 @@ stdenv.mkDerivation rec { installFlags = [ "PREFIX=$(out)" ]; + postPatch = '' + # --with-appname="$0" is evaluated with $0=.carla-wrapped instead of carla. Fix that. + for file in $(grep -rl -- '--with-appname="$0"'); do + filename="$(basename -- "$file")" + substituteInPlace "$file" --replace '--with-appname="$0"' "--with-appname=\"$filename\"" + done + ''; + dontWrapQtApps = true; postFixup = '' # Also sets program_PYTHONPATH and program_PATH variables |