From 85536e892b329d2c164d9776e2dcee114bd7ed79 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Tue, 5 Feb 2019 10:24:00 -0500 Subject: [PATCH] bintools-wrapper: fix unknown emulation error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using the + operator with throw doesn’t seems to work properly. You need to use antiquotes here to get the targetPlatform config included. --- pkgs/build-support/bintools-wrapper/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/bintools-wrapper/default.nix b/pkgs/build-support/bintools-wrapper/default.nix index 7ec74a2a92a..fca79636384 100644 --- a/pkgs/build-support/bintools-wrapper/default.nix +++ b/pkgs/build-support/bintools-wrapper/default.nix @@ -189,7 +189,7 @@ stdenv.mkDerivation { else if targetPlatform.isSparc then "sparc" else if targetPlatform.isAvr then "avr" else if targetPlatform.isAlpha then "alpha" - else throw "unknown emulation for platform: " + targetPlatform.config; + else throw "unknown emulation for platform: ${targetPlatform.config}"; in targetPlatform.platform.bfdEmulation or (fmt + sep + arch); strictDeps = true;