From 7727c70a52fcfe186b7d42581db6307617ec9b6e Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 6 Aug 2022 01:31:19 +0200 Subject: [PATCH] wargus: fixup path in .desktop file --- pkgs/games/wargus/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/games/wargus/default.nix b/pkgs/games/wargus/default.nix index 9cae3c537840..ca4b70923eca 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}