fluffychat: don't hardcode path in .desktop file

This allows wrapping the binary in a separate derivation without touching the .desktop file.
This commit is contained in:
Luflosi
2024-01-20 16:52:41 +01:00
committed by Maciej Krüger
parent 1c8d21c2d6
commit 799702f2e7
@@ -55,7 +55,7 @@ flutter313.buildFlutterApplication (rec {
desktopItem = makeDesktopItem {
name = "Fluffychat";
exec = "@out@/bin/fluffychat";
exec = "fluffychat";
icon = "fluffychat";
desktopName = "Fluffychat";
genericName = "Chat with your friends (matrix client)";
@@ -74,8 +74,6 @@ flutter313.buildFlutterApplication (rec {
mkdir -p $D
convert $FAV -resize ''${size}x''${size} $D/fluffychat.png
done
substituteInPlace $out/share/applications/*.desktop \
--subst-var out
patchelf --add-rpath ${libwebrtcRpath} $out/app/lib/libwebrtc.so
'';