Created
February 15, 2024 18:59
-
-
Save storopoli/10002dcfa7e65967ce320d03d99de383 to your computer and use it in GitHub Desktop.
Custom Rust in Nix Shell
This file contains 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
with import <nixpkgs> { overlays = [ (import <rust-overlay>) ]; }; | |
mkShell { | |
nativeBuildInputs = [ | |
bashInteractive | |
rust-bin.nightly.latest.default # or any other | |
]; | |
} |
This file contains 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
#!/bin/env bash | |
nix-channel --add https://github.com/oxalica/rust-overlay/archive/master.tar.gz rust-overlay | |
nix-channel --update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment