shell.nix: use Rust overlay

main
Elnu 2 years ago
parent 072c7c4b8b
commit b98bb6090f

@ -1,18 +1,25 @@
# <shell.nix>
{ pkgs ? import <nixpkgs> {}}: { 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.rust-bin.stable.latest.default.override {
extensions = [
"rust-src"
];
});
in
pkgs.mkShell { pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
rustc ruststable
cargo
rustfmt
rust-analyzer rust-analyzer
clippy
bacon
bacon bacon
pkg-config pkg-config
openssl openssl
]; ];
RUST_BACKTRACE = 1;
} }

Loading…
Cancel
Save