diff --git a/pkgs/games/WarThunder/default.nix b/pkgs/games/WarThunder/default.nix index d7540640cf989..11e9fecd85524 100644 --- a/pkgs/games/WarThunder/default.nix +++ b/pkgs/games/WarThunder/default.nix @@ -7,7 +7,7 @@ let text = '' #!/bin/bash - export "STORE_PATH"="$(dirname "$(readlink -f "$(which WarThunder)")")" + export "STORE_PATH"="$(dirname "$(readlink -f "$(which launcher)")")" echo "$STORE_PATH" echo "DEBUG::: STORE_PATH = $STORE_PATH" echo "Check for home directory, create if not present." @@ -124,9 +124,13 @@ libPath = lib.makeLibraryPath [ autoPatchelfHook stdenv.cc.cc stdenv.cc.cc.lib r fi echo "INFO: sym linking aces to WarThunder for purposes of desktop execution." ln -s ${acesx86_64}/bin/acesx86_64 $out/bin/WarThunder + touch store_path + cp store_path $out/bin/store_path + cp store_path $out/${pname}-${version}/store_path + ln -sf $out/bin/store_path $out/${pname}-${version}/store_path install -m755 -D launcher "$out/bin/launcher" - install -m755 -D gaijin_selfupdater $out/bin - install -m755 -D bpreport $out/bin + install -m755 -D gaijin_selfupdater "$out/bin" + install -m755 -D bpreport "$out/bin" runHook postInstall '';