makeRustcDerivation: Add configurationFlags, rustcBeta: Add beta configuration flag
This commit is contained in:
parent
d3db093560
commit
d29ef454f0
@ -12,4 +12,5 @@ callPackage ./makeRustcDerivation.nix {
|
||||
patches = [
|
||||
./patches/beta.patch
|
||||
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
||||
configureFlags = [ "--release-channel=beta" ];
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
, snapshotHashLinux686, snapshotHashLinux64
|
||||
, snapshotHashDarwin686, snapshotHashDarwin64
|
||||
, snapshotDate, snapshotRev
|
||||
, configureFlags ? []
|
||||
|
||||
, patches
|
||||
}:
|
||||
@ -113,7 +114,8 @@ stdenv.mkDerivation {
|
||||
'' else "");
|
||||
};
|
||||
|
||||
configureFlags = [ "--enable-local-rust" "--local-rust-root=$snapshot" ]
|
||||
configureFlags = configureFlags
|
||||
++ [ "--enable-local-rust" "--local-rust-root=$snapshot" ]
|
||||
++ stdenv.lib.optional (stdenv.cc ? clang) "--enable-clang";
|
||||
|
||||
inherit patches;
|
||||
|
Loading…
Reference in New Issue
Block a user