diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-02-05 10:24:00 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-02-26 15:55:48 -0500 |
commit | 85536e892b329d2c164d9776e2dcee114bd7ed79 (patch) | |
tree | 2a784bf96775f615437659cdf5a935e4a23af1b7 /pkgs/build-support | |
parent | aab8c7ba437d240bd9780e09489e7358fee180e2 (diff) | |
download | nixpkgs-85536e892b329d2c164d9776e2dcee114bd7ed79.tar nixpkgs-85536e892b329d2c164d9776e2dcee114bd7ed79.tar.gz nixpkgs-85536e892b329d2c164d9776e2dcee114bd7ed79.tar.bz2 nixpkgs-85536e892b329d2c164d9776e2dcee114bd7ed79.tar.lz nixpkgs-85536e892b329d2c164d9776e2dcee114bd7ed79.tar.xz nixpkgs-85536e892b329d2c164d9776e2dcee114bd7ed79.tar.zst nixpkgs-85536e892b329d2c164d9776e2dcee114bd7ed79.zip |
bintools-wrapper: fix unknown emulation error message
Using the + operator with throw doesn’t seems to work properly. You need to use antiquotes here to get the targetPlatform config included.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/bintools-wrapper/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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; |