2016-06-14 12:49:48 +02:00
|
|
|
{ stdenv, callPackage, rustPlatform,
|
|
|
|
targets ? [], targetToolchains ? [], targetPatches ? [] }:
|
|
|
|
|
|
|
|
rec {
|
|
|
|
rustc = callPackage ./rustc.nix {
|
2016-07-19 10:25:35 +02:00
|
|
|
shortVersion = "beta-1.11.0";
|
2016-06-14 12:49:48 +02:00
|
|
|
forceBundledLLVM = false;
|
2016-07-19 10:25:35 +02:00
|
|
|
needsCmake = true;
|
2016-06-14 12:49:48 +02:00
|
|
|
configureFlags = [ "--release-channel=beta" ];
|
2016-07-19 10:25:35 +02:00
|
|
|
srcRev = "9333c420da0da6291740c313d5af3d620b55b8bc";
|
|
|
|
srcSha = "05z6i4s5jjw3c5ypap6kzxk81bg4dib47h51znvsvcvr0svsnkgs";
|
|
|
|
patches = [
|
|
|
|
./patches/disable-lockfile-check.patch
|
|
|
|
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
2016-06-14 12:49:48 +02:00
|
|
|
inherit targets;
|
|
|
|
inherit targetPatches;
|
|
|
|
inherit targetToolchains;
|
|
|
|
inherit rustPlatform;
|
|
|
|
};
|
|
|
|
|
|
|
|
cargo = callPackage ./cargo.nix rec {
|
2016-07-19 10:25:35 +02:00
|
|
|
version = "0.12.0";
|
|
|
|
srcRev = "6c27aa6985c18d644cbf6a13d54c8ae36aeaae12";
|
|
|
|
srcSha = "1piq13aigd0yz0ysff450bfg3z56pw0vzzbzzpcppsnnrnh8zdb2";
|
|
|
|
depsSha256 = "1jrwzm9fd15kf2d5zb17q901hx32h711ivcwdpxpmzwq08sjlcvl";
|
2016-06-14 12:49:48 +02:00
|
|
|
inherit rustc; # the rustc that will be wrapped by cargo
|
|
|
|
inherit rustPlatform; # used to build cargo
|
|
|
|
};
|
|
|
|
}
|