forked from trinitrix/core
build(flake): Use the minimal rust distribution for builds
This commit is contained in:
parent
ebd3b0d476
commit
37a0834aa0
11
flake.nix
11
flake.nix
|
@ -52,8 +52,17 @@
|
||||||
extensions = ["rustc-codegen-cranelift-preview"];
|
extensions = ["rustc-codegen-cranelift-preview"];
|
||||||
}
|
}
|
||||||
else pkgs.rust-bin.stable.latest.default;
|
else pkgs.rust-bin.stable.latest.default;
|
||||||
|
rust_min =
|
||||||
|
if nightly
|
||||||
|
then
|
||||||
|
(pkgs.rust-bin.selectLatestNightlyWith (toolchain:
|
||||||
|
toolchain.minimal))
|
||||||
|
.override {
|
||||||
|
extensions = ["rustc-codegen-cranelift-preview"];
|
||||||
|
}
|
||||||
|
else pkgs.rust-bin.stable.latest.minimal;
|
||||||
|
|
||||||
craneLib = (crane.mkLib pkgs).overrideToolchain rust;
|
craneLib = (crane.mkLib pkgs).overrideToolchain rust_min;
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|
Loading…
Reference in New Issue