Skip to content

Instantly share code, notes, and snippets.

@storopoli
Created February 15, 2024 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save storopoli/10002dcfa7e65967ce320d03d99de383 to your computer and use it in GitHub Desktop.
Save storopoli/10002dcfa7e65967ce320d03d99de383 to your computer and use it in GitHub Desktop.
Custom Rust in Nix Shell
with import <nixpkgs> { overlays = [ (import <rust-overlay>) ]; };
mkShell {
nativeBuildInputs = [
bashInteractive
rust-bin.nightly.latest.default # or any other
];
}
#!/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