rust: Don't force gcc6
This commit is contained in:
parent
f93470d7a3
commit
54e9082375
@ -2,7 +2,6 @@
|
|||||||
, buildPackages
|
, buildPackages
|
||||||
, newScope, callPackage
|
, newScope, callPackage
|
||||||
, CoreFoundation, Security
|
, CoreFoundation, Security
|
||||||
, gcc6
|
|
||||||
}: rec {
|
}: rec {
|
||||||
makeRustPlatform = { rustc, cargo, ... }: {
|
makeRustPlatform = { rustc, cargo, ... }: {
|
||||||
rust = {
|
rust = {
|
||||||
@ -49,19 +48,15 @@
|
|||||||
buildRustPackages = buildPackages.rust.packages.stable;
|
buildRustPackages = buildPackages.rust.packages.stable;
|
||||||
# Analogous to stdenv
|
# Analogous to stdenv
|
||||||
rustPlatform = makeRustPlatform self.buildRustPackages;
|
rustPlatform = makeRustPlatform self.buildRustPackages;
|
||||||
rustc = self.callPackage ./rustc.nix ({
|
rustc = self.callPackage ./rustc.nix {
|
||||||
# Use boot package set to break cycle
|
# Use boot package set to break cycle
|
||||||
rustPlatform = bootRustPlatform;
|
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
|
# Use boot package set to break cycle
|
||||||
rustPlatform = bootRustPlatform;
|
rustPlatform = bootRustPlatform;
|
||||||
inherit CoreFoundation Security;
|
inherit CoreFoundation Security;
|
||||||
} // stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
};
|
||||||
stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user