uefi-rs/nix/rust-toolchain.nix
Philipp Schuster db9377c6e0 nix: switch to Nix Flake
This modernizes the Nix files of this project. Nix Flakes are the
de-facto standard way in Nix to package projects and specify their
inputs. Inputs can be any Nix or non-Nix project.

Updating Nix dependencies now is as easy as `nix flake update` and
a corresponding commit.

As they are still not stabilized yet, you need the line

    experimental-features = nix-command flakes

in /etc/nix/nix.conf to use the flake. By usage, I mean entering
the Nix development shell using `$ nix develop .` or if you want
to run `nix flake update`.

The package manager niv, we used to have, is basically dead.
2025-03-02 11:48:36 +01:00

9 lines
222 B
Nix

# 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