flake: simplify nix code

This commit is contained in:
Philipp Schuster 2026-06-09 21:11:15 +02:00
parent 2dba05059b
commit cbc2d424bc
No known key found for this signature in database
2 changed files with 1 additions and 11 deletions

View file

@ -28,9 +28,8 @@
pkgs:
let
rust-bin = (inputs.rust-overlay.lib.mkRustBin { }) pkgs;
rustToolchainBuilder = import ./nix/rust-toolchain.nix;
in
rustToolchainBuilder { inherit rust-bin; };
rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in
{
devShells = forAllSystems (pkgs: {

View file

@ -1,9 +0,0 @@
# Returns a Rust toolchain for Nix that matches the one from the toolchain file.
{
# Comes from rust-overlay
rust-bin,
}:
# Includes rustc, cargo, rustfmt, etc
rust-bin.fromRustupToolchainFile ../rust-toolchain.toml