1 2 3 4 5 6 7 8
{ pkgs ? import <nixpkgs> {} }: pkgs.mkShell { nativeBuildInputs = with pkgs; [ rustc cargo gcc pkg-config ]; buildInputs = with pkgs; [ openssl ncurses ]; RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; }