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 = [
|
||||||
./patches/beta.patch
|
./patches/beta.patch
|
||||||
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
||||||
|
configureFlags = [ "--release-channel=beta" ];
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
, snapshotHashLinux686, snapshotHashLinux64
|
, snapshotHashLinux686, snapshotHashLinux64
|
||||||
, snapshotHashDarwin686, snapshotHashDarwin64
|
, snapshotHashDarwin686, snapshotHashDarwin64
|
||||||
, snapshotDate, snapshotRev
|
, snapshotDate, snapshotRev
|
||||||
|
, configureFlags ? []
|
||||||
|
|
||||||
, patches
|
, patches
|
||||||
}:
|
}:
|
||||||
@ -113,7 +114,8 @@ stdenv.mkDerivation {
|
|||||||
'' else "");
|
'' 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";
|
++ stdenv.lib.optional (stdenv.cc ? clang) "--enable-clang";
|
||||||
|
|
||||||
inherit patches;
|
inherit patches;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user