From 05a15bfcfb58e53e57e1fe64a9ea60fc99c5b460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 4 Nov 2023 11:26:54 +0100 Subject: [PATCH] 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") --- pkgs/applications/emulators/retroarch/cores.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/emulators/retroarch/cores.nix b/pkgs/applications/emulators/retroarch/cores.nix index e1805df07c2e..d84ae907b179 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;