Last active
July 18, 2025 16:14
-
-
Save storopoli/10002dcfa7e65967ce320d03d99de383 to your computer and use it in GitHub Desktop.
Custom Rust in Nix Shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
rust-overlay = import (builtins.fetchTarball { | |
url = "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"; | |
# Optionally pin to specific commit: | |
# url = "https://github.com/oxalica/rust-overlay/archive/COMMIT_HASH.tar.gz"; | |
}); | |
in | |
with import <nixpkgs> { overlays = [ rust-overlay ]; }; | |
mkShell { | |
buildInputs = [ | |
bashInteractive | |
# rust-bin.nightly.latest.default # or any other | |
(rust-bin.fromRustupToolchainFile ./rust-toolchain.toml) | |
]; | |
} |
Author
storopoli
commented
Jul 18, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment