From 68bbccea556954e9ab286d6d8aeea7b4b4c7f55e Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 18 Jun 2023 15:07:37 -0700 Subject: [PATCH] mesonEmulatorHook: make error message agree with code This commit fixes the error thrown by `mesonEmulatorHook` so it agrees with the actual condition that was not met. Discovered during this discussion: https://github.com/NixOS/nixpkgs/pull/238331#discussion_r1233305043 --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 60667e7d4c699..fbd9343bffbfc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5551,7 +5551,7 @@ with pkgs; ''; }; } ../development/tools/build-managers/meson/emulator-hook.sh - else throw "mesonEmulatorHook has to be in a conditional to check if the target binaries can be executed i.e. (!stdenv.buildPlatform.canExecute stdenv.hostPlatform)"; + else throw "mesonEmulatorHook has to be in a conditional to check if the target binaries can be executed i.e. (!stdenv.buildPlatform.canExecute stdenv.targetPlatform)"; meson-tools = callPackage ../misc/meson-tools { };