mirror of
https://github.com/rust-osdev/uefi-rs
synced 2026-08-26 18:26:05 -04:00
flake: simplify nix code
This commit is contained in:
parent
2dba05059b
commit
cbc2d424bc
2 changed files with 1 additions and 11 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue