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-10-22 18:49:23 +01:00
|
|
|
shortVersion = "1.12.1";
|
2016-06-14 11:49:48 +01:00
|
|
|
isRelease = true;
|
|
|
|
forceBundledLLVM = false;
|
|
|
|
configureFlags = [ "--release-channel=stable" ];
|
2016-10-22 18:49:23 +01:00
|
|
|
srcRev = "d4f39402a0c2c2b94ec0375cd7f7f6d7918113cd";
|
|
|
|
srcSha = "1lpykjy96rwz4jy28rf7ijca0q9lvckgnbzvcdsrspd5rs2ywfwr";
|
2016-08-24 10:56:02 +01:00
|
|
|
|
2016-07-10 21:45:58 +01:00
|
|
|
patches = [
|
|
|
|
./patches/disable-lockfile-check.patch
|
|
|
|
] ++ 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-10-11 02:59:26 +01:00
|
|
|
version = "0.13.0";
|
|
|
|
srcRev = "109cb7c33d426044d141457049bd0fffaca1327c";
|
|
|
|
srcSha = "0p79m7hpzjh36l4fc6a59h6r8yz6qafjcdg5v1yb7bac9m2wi7vs";
|
|
|
|
depsSha256 = "1cwp4p8b985fj8j2qmgsi2mpp51rdpwzm9qa60760nrry1fy624z";
|
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
|
|
|
|
};
|
|
|
|
}
|