Skip to content

Commit a8da558

Browse files
committed
fix: nix cargo run
1 parent b1ed3b0 commit a8da558

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

flake.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,9 @@
2828

2929
hostTarget = systemToTarget.${system} or (throw "Unsupported system: ${system}");
3030
toolchain = target: fenix.combine [
31-
(fenix.targets.${hostTarget}.minimal.rust-std)
32-
(fenix.targets.${hostTarget}.minimal.toolchain)
33-
(fenix.targets.${target}.fromToolchainFile {
34-
file = ./rust-toolchain.toml;
35-
sha256 = "sha256-WGTJJbpV6WEv0VHPBqSIqWLCxzHivFNu0okQ2f9LrWU=";
36-
})
31+
(fenix.targets.${hostTarget}.default.rust-std)
32+
(fenix.targets.${hostTarget}.default.toolchain)
33+
(fenix.targets.${target}.latest.toolchain)
3734
];
3835
craneLib = target: (crane.mkLib pkgs).overrideToolchain (toolchain target);
3936

rust-toolchain.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[toolchain]
22
channel = "nightly-2024-11-18"
33
profile = "minimal"
4-
targets = ["x86_64-unknown-none"]
5-
components = ["rust-src", "cargo", "rustc", "llvm-tools", "clippy", "rustfmt"]
4+
components = ["rust-src", "rustc", "llvm-tools"]

0 commit comments

Comments
 (0)