2016-06-14 10:49:48 +00:00
|
|
|
{ stdenv, callPackage, rustPlatform,
|
|
|
|
targets ? [], targetToolchains ? [], targetPatches ? [] }:
|
|
|
|
|
|
|
|
rec {
|
|
|
|
rustc = callPackage ./rustc.nix {
|
2016-11-25 08:46:40 +00:00
|
|
|
shortVersion = "beta-2016-11-16";
|
2016-06-14 10:49:48 +00:00
|
|
|
forceBundledLLVM = false;
|
|
|
|
configureFlags = [ "--release-channel=beta" ];
|
2016-11-25 08:46:40 +00:00
|
|
|
srcRev = "e627a2e6edbc7b7fd205de8ca7c86cff76655f4d";
|
|
|
|
srcSha = "14sbhn6dp6rri1rpkspjlmy359zicwmyppdak52xj1kqhcjn71wa";
|
2016-07-19 08:25:35 +00:00
|
|
|
patches = [
|
2016-11-25 08:46:40 +00:00
|
|
|
./patches/disable-lockfile-check-beta.patch
|
2016-07-19 08:25:35 +00:00
|
|
|
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
2016-06-14 10:49:48 +00:00
|
|
|
inherit targets;
|
|
|
|
inherit targetPatches;
|
|
|
|
inherit targetToolchains;
|
|
|
|
inherit rustPlatform;
|
|
|
|
};
|
|
|
|
|
|
|
|
cargo = callPackage ./cargo.nix rec {
|
2016-11-25 08:46:40 +00:00
|
|
|
version = "0.14.0";
|
|
|
|
srcRev = "eca9e159b6b0d484788ac757cf23052eba75af55";
|
|
|
|
srcSha = "1zm5rzw1mvixnkzr4775pcxx6k235qqxbysyp179cbxsw3dm045s";
|
|
|
|
depsSha256 = "0gpn0cpwgpzwhc359qn6qplx371ag9pqbwayhqrsydk1zm5bm3zr";
|
2016-08-08 20:20:56 +00:00
|
|
|
|
2016-06-14 10:49:48 +00:00
|
|
|
inherit rustc; # the rustc that will be wrapped by cargo
|
|
|
|
inherit rustPlatform; # used to build cargo
|
|
|
|
};
|
|
|
|
}
|