Created
August 29, 2021 16:13
-
-
Save FintanH/598a4ffa1c6119fdbf68110d660d5494 to your computer and use it in GitHub Desktop.
Rust 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 | |
nixpkgs = import <nixpkgs> {}; | |
rtc = (nixpkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain); | |
rust = rtc.override { | |
extensions = [ "rust-src" "rust-analysis" ]; | |
}; | |
in | |
with nixpkgs; | |
mkShell { | |
name = "rust"; | |
buildInputs = [ | |
cargo-deny | |
cargo-expand | |
cargo-watch | |
openssl | |
pkgconfig | |
ripgrep | |
rust | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment