Remove pkgsBuildHost from devShell.

This commit is contained in:
Tom Alexander
2026-07-10 21:04:21 -04:00
parent de6739f9b6
commit 957bb3a5c8
2 changed files with 5 additions and 5 deletions

View File

@@ -35,9 +35,9 @@
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system overlays; inherit system overlays;
}; };
rustToolchain = rustToolchain = (pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml).override {
(pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml).override targets = [ "wasm32-unknown-unknown" ];
{ targets = [ "wasm32-unknown-unknown" ]; }; };
in in
{ {
default = pkgs.mkShell { default = pkgs.mkShell {

View File

@@ -2,7 +2,7 @@
hello, hello,
lib, lib,
makeRustPlatform, makeRustPlatform,
pkgsBuildHost, rust-bin,
targetBins ? [ ], targetBins ? [ ],
features ? [ ], features ? [ ],
@@ -12,7 +12,7 @@
}: }:
let let
cargoToml = (lib.importTOML ../Cargo.toml); cargoToml = (lib.importTOML ../Cargo.toml);
rustToolchain = (pkgsBuildHost.rust-bin.fromRustupToolchainFile ../rust-toolchain.toml).override ( rustToolchain = (rust-bin.fromRustupToolchainFile ../rust-toolchain.toml).override (
if cargoBuildTarget != null then if cargoBuildTarget != null then
{ {
targets = [ cargoBuildTarget ]; targets = [ cargoBuildTarget ];