use direct func params instead of pkgs

using `makeRustPlatform` and `rust-bin` via func params can keep capacity for user to override `makeRustPlatform` and `rust-bin`.
This commit is contained in:
ulic-youthlic
2025-05-13 12:17:07 +02:00
committed by Sebastian Martinez
parent 10f22342d9
commit d18663df68
+2 -2
View File
@@ -78,8 +78,8 @@
openssh,
playwright-browsers_v1_47_0,
}: let
rTc = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain;
rustPlatform = pkgs.makeRustPlatform {
rTc = rust-bin.fromRustupToolchainFile ./rust-toolchain;
rustPlatform = makeRustPlatform {
cargo = rTc;
rustc = rTc;
};