about summary refs log tree commit diff
path: root/pkgs/development/compilers/rust
diff options
context:
space:
mode:
authorMichael Eden <themichaeleden@gmail.com>2019-03-11 21:19:48 -0400
committerJohn Ericson <git@JohnEricson.me>2019-03-29 11:11:53 -0400
commit54e908237550b95080d262143c121f064dbd6ff0 (patch)
treef58e7a18d6a73e34abf723d72b20d123e74179c7 /pkgs/development/compilers/rust
parentf93470d7a318d91740120e45f8cc6455bc7c56ef (diff)
downloadnixlib-54e908237550b95080d262143c121f064dbd6ff0.tar
nixlib-54e908237550b95080d262143c121f064dbd6ff0.tar.gz
nixlib-54e908237550b95080d262143c121f064dbd6ff0.tar.bz2
nixlib-54e908237550b95080d262143c121f064dbd6ff0.tar.lz
nixlib-54e908237550b95080d262143c121f064dbd6ff0.tar.xz
nixlib-54e908237550b95080d262143c121f064dbd6ff0.tar.zst
nixlib-54e908237550b95080d262143c121f064dbd6ff0.zip
rust: Don't force gcc6
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r--pkgs/development/compilers/rust/default.nix13
1 files changed, 4 insertions, 9 deletions
diff --git a/pkgs/development/compilers/rust/default.nix b/pkgs/development/compilers/rust/default.nix
index 3a6ce5821d91..47df7e716dc1 100644
--- a/pkgs/development/compilers/rust/default.nix
+++ b/pkgs/development/compilers/rust/default.nix
@@ -2,7 +2,6 @@
 , buildPackages
 , newScope, callPackage
 , CoreFoundation, Security
-, gcc6
 }: rec {
   makeRustPlatform = { rustc, cargo, ... }: {
     rust = {
@@ -49,19 +48,15 @@
       buildRustPackages = buildPackages.rust.packages.stable;
       # Analogous to stdenv
       rustPlatform = makeRustPlatform self.buildRustPackages;
-      rustc = self.callPackage ./rustc.nix ({
+      rustc = self.callPackage ./rustc.nix {
         # Use boot package set to break cycle
         rustPlatform = bootRustPlatform;
-      } // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
-        stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
-      });
-      cargo = self.callPackage ./cargo.nix ({
+      };
+      cargo = self.callPackage ./cargo.nix {
         # Use boot package set to break cycle
         rustPlatform = bootRustPlatform;
         inherit CoreFoundation Security;
-      } // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
-        stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
-      });
+      };
     });
   };
 }