carla: fix --app-name for compatibility with NSM

This commit is contained in:
Tobias Bora 2021-10-01 09:47:33 +02:00
parent 8d30ac220a
commit a89400db62

View file

@ -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