2016-06-14 11:49:48 +01:00
|
|
|
{ stdenv, callPackage, recurseIntoAttrs, makeRustPlatform,
|
|
|
|
targets ? [], targetToolchains ? [], targetPatches ? [] }:
|
|
|
|
|
|
|
|
let
|
2016-07-09 08:01:49 +01:00
|
|
|
rustPlatform = recurseIntoAttrs (makeRustPlatform (callPackage ./bootstrap.nix {}));
|
2016-06-14 11:49:48 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
rec {
|
|
|
|
rustc = callPackage ./rustc.nix {
|
2016-12-29 07:55:38 +00:00
|
|
|
shortVersion = "1.14";
|
2016-06-14 11:49:48 +01:00
|
|
|
isRelease = true;
|
|
|
|
forceBundledLLVM = false;
|
|
|
|
configureFlags = [ "--release-channel=stable" ];
|
2016-12-29 07:55:38 +00:00
|
|
|
srcRev = "e8a0123241f0d397d39cd18fcc4e5e7edde22730";
|
|
|
|
srcSha = "1sla3gnx9dqvivnyhvwz299mc3jmdy805q2y5xpmpi1vhfk0bafx";
|
2016-08-24 10:56:02 +01:00
|
|
|
|
2016-07-10 21:45:58 +01:00
|
|
|
patches = [
|
2016-11-25 08:46:40 +00:00
|
|
|
./patches/disable-lockfile-check-stable.patch
|
2016-07-10 21:45:58 +01:00
|
|
|
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
2016-08-24 10:56:02 +01:00
|
|
|
|
2016-06-14 11:49:48 +01:00
|
|
|
inherit targets;
|
|
|
|
inherit targetPatches;
|
|
|
|
inherit targetToolchains;
|
2016-07-10 21:45:58 +01:00
|
|
|
inherit rustPlatform;
|
2016-06-14 11:49:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cargo = callPackage ./cargo.nix rec {
|
2016-12-29 07:55:38 +00:00
|
|
|
version = "0.15.0";
|
|
|
|
srcRev = "298a0127f703d4c2500bb06d309488b92ef84ae1";
|
|
|
|
srcSha = "0v74r18vszapw2rfk7w72czkp9gbq4s1sggphm5vx0kyh058dxc5";
|
|
|
|
depsSha256 = "0ksiywli8r4lkprfknm0yz1w27060psi3db6wblqmi8sckzdm44h";
|
2016-08-08 14:55:26 +01:00
|
|
|
|
2016-06-14 11:49:48 +01:00
|
|
|
inherit rustc; # the rustc that will be wrapped by cargo
|
|
|
|
inherit rustPlatform; # used to build cargo
|
|
|
|
};
|
|
|
|
}
|