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"];
|
||||
}
|
||||
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; [
|
||||
pkg-config
|
||||
|
|
Reference in New Issue