diff options
author | John Q Crosscompiler <john.q.crosscompiler@example.com> | 2018-07-26 09:33:36 -0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2018-07-26 09:33:36 -0400 |
commit | 7cc62144b2946796568e0125d1b56839c0b49226 (patch) | |
tree | 1f15eb2684e8777d948dd07b2e48d5ffefe6a105 /pkgs/build-support/bintools-wrapper | |
parent | 812f4749ae76262490e5e3984f8676953da1f5dc (diff) | |
download | nixpkgs-7cc62144b2946796568e0125d1b56839c0b49226.tar nixpkgs-7cc62144b2946796568e0125d1b56839c0b49226.tar.gz nixpkgs-7cc62144b2946796568e0125d1b56839c0b49226.tar.bz2 nixpkgs-7cc62144b2946796568e0125d1b56839c0b49226.tar.lz nixpkgs-7cc62144b2946796568e0125d1b56839c0b49226.tar.xz nixpkgs-7cc62144b2946796568e0125d1b56839c0b49226.tar.zst nixpkgs-7cc62144b2946796568e0125d1b56839c0b49226.zip |
systems: Allow detection of powerpc and sparc
Diffstat (limited to 'pkgs/build-support/bintools-wrapper')
-rw-r--r-- | pkgs/build-support/bintools-wrapper/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/bintools-wrapper/default.nix b/pkgs/build-support/bintools-wrapper/default.nix index 2739537c25d..91f9e7c71e3 100644 --- a/pkgs/build-support/bintools-wrapper/default.nix +++ b/pkgs/build-support/bintools-wrapper/default.nix @@ -185,6 +185,8 @@ stdenv.mkDerivation { "mips64" = "btsmip"; "mips64el" = "ltsmip"; }.${targetPlatform.parsed.cpu.name} + else if targetPlatform.isPowerPC then "powerpc" + else if targetPlatform.isSparc then "sparc" else throw "unknown emulation for platform: " + targetPlatform.config; in targetPlatform.platform.bfdEmulation or (fmt + sep + arch); |