nicks-nix-config/rust-shell-template.nix

19 lines
425 B
Nix
Raw Permalink Normal View History

2022-10-10 16:50:15 -07:00
{ pkgs ? import <nixpkgs> {}}:
let
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
ruststable = (pkgs.latest.rustChannels.stable.default.override {
extensions = [
"rust-src"
];
});
in
pkgs.mkShell {
buildInputs = with pkgs; [
ruststable
];
RUST_BACKTRACE = 1;
}