From b1e46a43749e60b9b925d6412605c602de40169e Mon Sep 17 00:00:00 2001 From: Michael-J-Ward Date: Fri, 21 Jun 2024 10:33:12 -0500 Subject: [PATCH] add py312 env --- flake.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/flake.nix b/flake.nix index 69208ff8b..0bdb3a3b2 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,8 @@ (python.withPackages (python-pkgs: [ python-pkgs.numpy python-pkgs.pyarrow + python-pkgs.pandas + python-pkgs.polars ])) pkgs.maturin ]; @@ -151,6 +153,31 @@ # RUST_BACKTRACE = 1; }; + # Rust dev environment - python310 + devShells.py312 = pkgs.mkShell { + inherit NIX_LD_LIBRARY_PATH; + inputsFrom = [ + config.treefmt.build.devShell + ]; + shellHook = '' + # For rust-analyzer 'hover' tooltips to work. + export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc} + + echo + echo "🍎🍎 Run 'just ' to get started" + just + ''; + buildInputs = nonRustDeps; + nativeBuildInputs = with pkgs; [ + just + (rust-toolchain python312) + (pkgs.hiPrio pkgs.bashInteractive) # needed so it doesn't mangle terminal in vscode + python312 + pre-commit + ]; + # RUST_BACKTRACE = 1; + }; + # Rust dev environment - python37 devShells.py37 = pkgs.mkShell { inherit NIX_LD_LIBRARY_PATH;