24 lines
720 B
Nix
24 lines
720 B
Nix
let
|
|
pkgs = import <nixpkgs> {};
|
|
in pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
# Benchmarking tool
|
|
hyperfine
|
|
|
|
# Jupyter notebook
|
|
(python312.withPackages
|
|
(py-pkgs: with py-pkgs; [
|
|
notebook
|
|
pip-chill
|
|
])
|
|
)
|
|
];
|
|
|
|
# Rust installation
|
|
nativeBuildInputs = with pkgs; [ rustc cargo gcc rustfmt clippy valgrind ];
|
|
|
|
# Certain Rust tools won't work without this
|
|
# This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension
|
|
# See https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570/3?u=samuela. for more details.
|
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
} |