lisp-8bit/shell.nix

14 lines
294 B
Nix
Raw Permalink Normal View History

2024-08-08 21:53:27 +02:00
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell rec {
buildInputs = with pkgs; [
rustup
];
RUSTC_VERSION = "stable";
shellHook = ''
rustup default $RUSTC_VERSION
rustup component add rust-analyzer
export PATH=$PATH:''${CARGO_HOME:-~/.cargo}/bin
'';
}