From d18663df68cecd81c011a1044c441c73c019c7b6 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Mon, 12 May 2025 22:07:54 +0800 Subject: [PATCH] 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`. --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index b68f6255b..c408ef259 100644 --- a/flake.nix +++ b/flake.nix @@ -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; };