nix: override rustPlatform instead of using makeRustPlatform

This commit is contained in:
Zynh Ludwig 2025-01-11 11:59:56 -08:00
parent 5cafe9d92b
commit 65565a4205
2 changed files with 6 additions and 7 deletions

View file

@ -33,8 +33,10 @@
packages.default =
let rust-bin = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
in pkgs.callPackage ./package.nix {
cargo = rust-bin;
rustc = rust-bin;
rustPlatform = pkgs.makeRustPlatform {
rustc = rust-bin;
cargo = rust-bin;
};
};
};
};

View file

@ -1,6 +1,4 @@
{ makeRustPlatform
, cargo
, rustc
{ rustPlatform
# Runtime Deps
, sqlite
@ -10,8 +8,7 @@
, pkg-config
}:
let rustPlatform = makeRustPlatform { inherit cargo rustc; };
in rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage {
pname = "nyazoom";
version = "0.1.0";