summary refs log tree commit diff
path: root/pkgs/applications/emulators
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2023-11-04 11:26:54 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2023-11-04 11:28:55 +0100
commit05a15bfcfb58e53e57e1fe64a9ea60fc99c5b460 (patch)
tree7b94e4f7039421e8129c4e169142b412a60e0409 /pkgs/applications/emulators
parent47ab3596a7163c69d642235da3d88f9fbe95df03 (diff)
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: fe330c57da8bdd98 ("retroarchFull: fix pcsx2 core installation")
Diffstat (limited to 'pkgs/applications/emulators')
-rw-r--r--pkgs/applications/emulators/retroarch/cores.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/emulators/retroarch/cores.nix b/pkgs/applications/emulators/retroarch/cores.nix
index e1805df07c2e0..d84ae907b1795 100644
--- a/pkgs/applications/emulators/retroarch/cores.nix
+++ b/pkgs/applications/emulators/retroarch/cores.nix
@@ -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;