about summary refs log tree commit diff
path: root/pkgs/applications/graphics/runwayml/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/graphics/runwayml/default.nix')
-rw-r--r--pkgs/applications/graphics/runwayml/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/runwayml/default.nix b/pkgs/applications/graphics/runwayml/default.nix
index 9366276ebf84c..0b656a8d5dd6f 100644
--- a/pkgs/applications/graphics/runwayml/default.nix
+++ b/pkgs/applications/graphics/runwayml/default.nix
@@ -31,7 +31,8 @@ in
     postBuild = ''
       mkdir -p $out/share/pixmaps/ $out/share/applications
       cp ${appimage-contents}/usr/share/icons/hicolor/1024x1024/apps/runway.png $out/share/pixmaps/runway.png
-      sed 's:Exec=AppRun:Exec=runwayml:' ${appimage-contents}/runway.desktop > $out/share/applications/runway.desktop
+      substituteInPlace ${appimage-contents}/runway.desktop \
+        --replace 'Exec=AppRun' 'Exec=${pname}'
     '';
 
   meta = with lib; {