summary refs log tree commit diff
path: root/pkgs/games/wargus
diff options
context:
space:
mode:
authorAstro <astro@spaceboyz.net>2022-08-06 01:31:19 +0200
committerehmry <ehmry@posteo.net>2022-08-05 21:00:19 -0500
commit7727c70a52fcfe186b7d42581db6307617ec9b6e (patch)
tree3ed9a96165322fe60ce4185795ad15974a29cef7 /pkgs/games/wargus
parent633312813703642a14acd042c5a068968978a25d (diff)
downloadnixpkgs-7727c70a52fcfe186b7d42581db6307617ec9b6e.tar
nixpkgs-7727c70a52fcfe186b7d42581db6307617ec9b6e.tar.gz
nixpkgs-7727c70a52fcfe186b7d42581db6307617ec9b6e.tar.bz2
nixpkgs-7727c70a52fcfe186b7d42581db6307617ec9b6e.tar.lz
nixpkgs-7727c70a52fcfe186b7d42581db6307617ec9b6e.tar.xz
nixpkgs-7727c70a52fcfe186b7d42581db6307617ec9b6e.tar.zst
nixpkgs-7727c70a52fcfe186b7d42581db6307617ec9b6e.zip
wargus: fixup path in .desktop file
Diffstat (limited to 'pkgs/games/wargus')
-rw-r--r--pkgs/games/wargus/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/games/wargus/default.nix b/pkgs/games/wargus/default.nix
index 9cae3c53784..ca4b70923ec 100644
--- a/pkgs/games/wargus/default.nix
+++ b/pkgs/games/wargus/default.nix
@@ -46,6 +46,8 @@ stdenv.mkDerivation rec {
   postInstall = ''
     makeWrapper $out/games/wargus $out/bin/wargus \
       --prefix PATH : ${lib.makeBinPath [ "$out" ]}
+    substituteInPlace $out/share/applications/wargus.desktop \
+      --replace $out/games/wargus $out/bin/wargus
 
     $out/bin/wartool -v -r ${data} $out/share/games/stratagus/wargus
     ln -s $out/share/games/stratagus/wargus/{contrib/black_title.png,graphics/ui/black_title.png}