libretro.pcsx2: avoid $NIX_BUILD_TOP

Using $NIX_BUILD_TOP in a Nix expression break under nix-shell (or when
using nativeBuildInputs = [ keepBuildTree ]), so let's avoid it.

Ref. https://github.com/NixOS/nixpkgs/issues/189691

Fixes: fe330c57da ("retroarchFull: fix pcsx2 core installation")
This commit is contained in:
Bjørn Forsman 2023-11-04 11:26:54 +01:00
parent 47ab3596a7
commit 05a15bfcfb

View File

@ -760,7 +760,7 @@ in
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
postBuild = "cd $NIX_BUILD_TOP/source/build/pcsx2";
postBuild = "cd pcsx2";
meta = {
description = "Port of PCSX2 to libretro";
license = lib.licenses.gpl3Plus;