wargus: fixup path in .desktop file

This commit is contained in:
Astro 2022-08-06 01:31:19 +02:00 committed by ehmry
parent 6333128137
commit 7727c70a52

View File

@ -46,6 +46,8 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
makeWrapper $out/games/wargus $out/bin/wargus \ makeWrapper $out/games/wargus $out/bin/wargus \
--prefix PATH : ${lib.makeBinPath [ "$out" ]} --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 $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} ln -s $out/share/games/stratagus/wargus/{contrib/black_title.png,graphics/ui/black_title.png}