about summary refs log tree commit diff
path: root/pkgs/games/runescape-launcher/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/runescape-launcher/default.nix')
-rw-r--r--pkgs/games/runescape-launcher/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/games/runescape-launcher/default.nix b/pkgs/games/runescape-launcher/default.nix
index e671e5589b82..75ed66c01e00 100644
--- a/pkgs/games/runescape-launcher/default.nix
+++ b/pkgs/games/runescape-launcher/default.nix
@@ -103,6 +103,13 @@ in
     ];
     multiPkgs = pkgs: [ libGL ];
     runScript = "runescape-launcher";
+    extraInstallCommands = ''
+      mkdir -p "$out/share/applications"
+      cp ${runescape}/share/applications/runescape-launcher.desktop "$out/share/applications"
+      cp -r ${runescape}/share/icons "$out/share/icons"
+      substituteInPlace "$out/share/applications/runescape-launcher.desktop" \
+        --replace "/usr/bin/runescape-launcher" "RuneScape"
+    '';
 
     meta = with lib; {
       description = "RuneScape Game Client (NXT) - Launcher for RuneScape 3";