all-packages.nix: fix path to emulator-hook.sh

This commit is contained in:
Adam Joseph 2023-11-02 19:58:13 -07:00
parent a5f7981dde
commit 1e10fd1b31

View File

@ -5997,7 +5997,7 @@ with pkgs;
# outer level, but not its outPath can still be evaluated if the condition
# doesn't hold. This ensures that splicing still can work correctly.
(if (!stdenv.hostPlatform.canExecute stdenv.targetPlatform) then
../development/tools/build-managers/meson/emulator-hook.sh
../by-name/me/meson/emulator-hook.sh
else
throw "mesonEmulatorHook may only be added to nativeBuildInputs when the target binaries can't be executed; however you are attempting to use it in a situation where ${stdenv.hostPlatform.config} can execute ${stdenv.targetPlatform.config}. Consider only adding mesonEmulatorHook according to a conditional based canExecute in your package expression.");