2016-06-14 12:49:48 +02:00
|
|
|
{ stdenv, callPackage, recurseIntoAttrs, makeRustPlatform,
|
|
|
|
targets ? [], targetToolchains ? [], targetPatches ? [] }:
|
|
|
|
|
|
|
|
let
|
2016-07-09 09:01:49 +02:00
|
|
|
rustPlatform = recurseIntoAttrs (makeRustPlatform (callPackage ./bootstrap.nix {}));
|
2016-06-14 12:49:48 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
rec {
|
|
|
|
rustc = callPackage ./rustc.nix {
|
2016-11-16 12:25:19 +01:00
|
|
|
shortVersion = "1.13";
|
2016-06-14 12:49:48 +02:00
|
|
|
isRelease = true;
|
|
|
|
forceBundledLLVM = false;
|
|
|
|
configureFlags = [ "--release-channel=stable" ];
|
2016-11-16 12:25:19 +01:00
|
|
|
srcRev = "2c6933acc05c61e041be764cb1331f6281993f3f";
|
|
|
|
srcSha = "1w0alyyc29cy2lczrqvg1kfycjxy0xg8fpzdac80m88fxpv23glp";
|
2016-08-24 11:56:02 +02:00
|
|
|
|
2016-07-10 22:45:58 +02:00
|
|
|
patches = [
|
2016-11-25 09:46:40 +01:00
|
|
|
./patches/disable-lockfile-check-stable.patch
|
2016-07-10 22:45:58 +02:00
|
|
|
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
2016-08-24 11:56:02 +02:00
|
|
|
|
2016-06-14 12:49:48 +02:00
|
|
|
inherit targets;
|
|
|
|
inherit targetPatches;
|
|
|
|
inherit targetToolchains;
|
2016-07-10 22:45:58 +02:00
|
|
|
inherit rustPlatform;
|
2016-06-14 12:49:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
cargo = callPackage ./cargo.nix rec {
|
2016-11-16 12:25:19 +01:00
|
|
|
version = "0.14.0";
|
|
|
|
srcRev = "eca9e159b6b0d484788ac757cf23052eba75af55";
|
|
|
|
srcSha = "1zm5rzw1mvixnkzr4775pcxx6k235qqxbysyp179cbxsw3dm045s";
|
|
|
|
depsSha256 = "0gpn0cpwgpzwhc359qn6qplx371ag9pqbwayhqrsydk1zm5bm3zr";
|
2016-08-08 15:55:26 +02:00
|
|
|
|
2016-06-14 12:49:48 +02:00
|
|
|
inherit rustc; # the rustc that will be wrapped by cargo
|
|
|
|
inherit rustPlatform; # used to build cargo
|
|
|
|
};
|
|
|
|
}
|