Skip to content

Instantly share code, notes, and snippets.

@FintanH
Created August 29, 2021 16:13
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 FintanH/598a4ffa1c6119fdbf68110d660d5494 to your computer and use it in GitHub Desktop.
Save FintanH/598a4ffa1c6119fdbf68110d660d5494 to your computer and use it in GitHub Desktop.
Rust Nix Shell
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