Merge pull request #265134 from amjoseph-nixpkgs/fix-path-to-emulator-hook

This commit is contained in:
Artturi 2023-11-03 05:10:25 +02:00 committed by GitHub
commit 660a8f6880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.");