2017-03-24 16:59:14 -07:00
|
|
|
{ stdenv, callPackage, recurseIntoAttrs, makeRustPlatform, llvm
|
|
|
|
, targets ? []
|
|
|
|
, targetToolchains ? []
|
|
|
|
, targetPatches ? []
|
|
|
|
}:
|
2016-06-14 03:49:48 -07:00
|
|
|
|
|
|
|
let
|
2016-07-09 00:01:49 -07:00
|
|
|
rustPlatform = recurseIntoAttrs (makeRustPlatform (callPackage ./bootstrap.nix {}));
|
2016-06-14 03:49:48 -07:00
|
|
|
in
|
|
|
|
rec {
|
|
|
|
rustc = callPackage ./rustc.nix {
|
2017-02-15 06:49:31 -08:00
|
|
|
shortVersion = "1.15.1";
|
2016-06-14 03:49:48 -07:00
|
|
|
isRelease = true;
|
|
|
|
forceBundledLLVM = false;
|
|
|
|
configureFlags = [ "--release-channel=stable" ];
|
2017-02-15 06:49:31 -08:00
|
|
|
srcRev = "021bd294c039bd54aa5c4aa85bcdffb0d24bc892";
|
|
|
|
srcSha = "1dp7cjxj8nv960jxkq3p18agh9bpfb69ac14x284jmhwyksim3y7";
|
2016-08-24 02:56:02 -07:00
|
|
|
|
2016-07-10 13:45:58 -07:00
|
|
|
patches = [
|
2017-01-08 01:31:34 -08:00
|
|
|
./patches/darwin-disable-fragile-tcp-tests.patch
|
2016-07-10 13:45:58 -07:00
|
|
|
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
2016-08-24 02:56:02 -07:00
|
|
|
|
2017-03-24 16:59:14 -07:00
|
|
|
inherit llvm;
|
2016-06-14 03:49:48 -07:00
|
|
|
inherit targets;
|
|
|
|
inherit targetPatches;
|
|
|
|
inherit targetToolchains;
|
2016-07-10 13:45:58 -07:00
|
|
|
inherit rustPlatform;
|
2016-06-14 03:49:48 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
cargo = callPackage ./cargo.nix rec {
|
2017-02-03 05:53:09 -08:00
|
|
|
version = "0.16.0";
|
|
|
|
srcRev = "6e0c18cccc8b0c06fba8a8d76486f81a792fb420";
|
|
|
|
srcSha = "117ivvs9wz848mwf8bw797n10qpn77agd353z8b0hxgbxhpribya";
|
|
|
|
depsSha256 = "11s2xpgfhl4mb4wa2nk4mzsypr7m9daxxc7l0vraiz5cr77gk7qq";
|
2016-08-08 06:55:26 -07:00
|
|
|
|
2016-06-14 03:49:48 -07:00
|
|
|
inherit rustc; # the rustc that will be wrapped by cargo
|
|
|
|
inherit rustPlatform; # used to build cargo
|
|
|
|
};
|
|
|
|
}
|