From 3701947a647735450365a4c3a0c72447adb8bb17 Mon Sep 17 00:00:00 2001 From: Mephist0phel3s Date: Thu, 9 Jan 2025 10:10:18 -0600 Subject: [PATCH] s --- pkgs/games/WarThunder/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/games/WarThunder/default.nix b/pkgs/games/WarThunder/default.nix index eba44e3558419..6c9255218f7ee 100644 --- a/pkgs/games/WarThunder/default.nix +++ b/pkgs/games/WarThunder/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, patchelf, makeWrapper, writeShellApplication, makeDesktopItem, gtk3, glib, xorg, remarkable2-toolchain, bash, autoPatchelfHook }: +{ stdenv, lib, fetchurl, patchelf, makeWrapper, writeShellApplication, makeDesktopItem, gtk3, glib, xorg, remarkable2-toolchain, bash, autoPatchelfHook, copyDesktopItem }: let acesx86_64 = writeShellApplication { @@ -74,6 +74,7 @@ stdenv.mkDerivation rec { unpackPhase = false; dontConfigure = true; dontBuild = true; + nativeBuildInputs = [ copyDesktopItem ]; buildInputs = [ autoPatchelfHook stdenv.cc.cc stdenv.cc.cc.lib remarkable2-toolchain glib gtk3 xorg.libX11 xorg.libXrandr ]; # patchPhase = let @@ -138,7 +139,7 @@ libPath = lib.makeLibraryPath [ autoPatchelfHook stdenv.cc.cc stdenv.cc.cc.lib r install -m755 -D launcher $out/bin install -m755 -D gaijin_selfupdater "$out/bin" install -m755 -D bpreport "$out/bin" - echo "INFO: Done." + echo "INFO: Done" runHook postInstall ''; @@ -146,7 +147,7 @@ libPath = lib.makeLibraryPath [ autoPatchelfHook stdenv.cc.cc stdenv.cc.cc.lib r desktopItem = makeDesktopItem { name = "War-Thunder"; - exec = "${acesx86_64}/bin/acesx86_64"; + exec = "acesx86_64"; icon = "launcher"; desktopName = "War Thunder"; genericName = "War Thunder";