Skip to content

Commit

Permalink
add py312 env
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-J-Ward committed Aug 5, 2024
1 parent 037c370 commit 47323a1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
(python.withPackages (python-pkgs: [
python-pkgs.numpy
python-pkgs.pyarrow
python-pkgs.pandas
python-pkgs.polars
]))
pkgs.maturin
];
Expand Down Expand Up @@ -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 <recipe>' 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;
Expand Down

0 comments on commit 47323a1

Please sign in to comment.