summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-11-28 19:32:43 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-11-28 19:36:28 +0000
commitb7650aaa77634e42d62ed6fc1a9081b10139618b (patch)
tree3afac7f7da8225fda6adcbeeb0f7e29481b8025d /pkgs/development/compilers
parent8ddf5c69077a6afda88a3ae72f10fdff031f75b8 (diff)
rust: Clean up target configs and test some more
See the new docs for details. The difference is vis-a-vis older versions of this PR, not master.
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/rust/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/compilers/rust/default.nix b/pkgs/development/compilers/rust/default.nix
index 95febd8945d6..25876cc63803 100644
--- a/pkgs/development/compilers/rust/default.nix
+++ b/pkgs/development/compilers/rust/default.nix
@@ -27,7 +27,7 @@
# Returns the name of the rust target, even if it is custom. Adjustments are
# because rust has slightly different naming conventions than we do.
toRustTarget = platform: with platform.parsed; let
- cpu_ = platform.rustc.arch or {
+ cpu_ = platform.rustc.platform.arch or {
"armv7a" = "armv7";
"armv7l" = "armv7";
"armv6l" = "arm";
@@ -38,8 +38,8 @@
# Returns the name of the rust target if it is standard, or the json file
# containing the custom target spec.
toRustTargetSpec = platform:
- if (platform.rustc.arch or {}) ? custom
- then builtins.toFile (platform.rustc.config + ".json") (builtins.toJSON platform.rustc.arch.custom)
+ if (platform.rustc or {}) ? platform
+ then builtins.toFile (toRustTarget platform + ".json") (builtins.toJSON platform.rustc.platform)
else toRustTarget platform;
# This just contains tools for now. But it would conceivably contain