Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 58 additions & 43 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,54 +64,69 @@
);

pyscfSupported = builtins.elem system pkgs.python314Packages.pyscf.meta.platforms;

devPackages =
with pkgs;
[
rustToolchain

cargo-nextest
cargo-deny
cargo-llvm-cov
cargo-criterion
cargo-expand
cargo-edit

bacon
cargo-watch
git
hyperfine
just
jq
ripgrep
rust-analyzer
time
cmake
pkg-config
]
++ pkgs.lib.optionals pyscfSupported [
# PySCF is currently available from nixpkgs on x86_64-linux
# and aarch64-darwin.
pythonScientific
]
++ pkgs.lib.optionals pkgs.stdenv.isLinux [
clang
cargo-flamegraph
gdb
inferno
llvmPackages.bintools
perf
]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
libiconv
samply
];
in
{
packages.default = rustiq;
packages = {
default = rustiq;

# Stable executable environment for editors and other processes
# that are not launched from an interactive Nix shell.
dev-environment = pkgs.buildEnv {
name = "rustiq-dev-environment";
paths = devPackages;
pathsToLink = [
"/bin"
"/share"
];
ignoreCollisions = true;
};
};

devShells.default = pkgs.mkShell {
strictDeps = true;

packages =
with pkgs;
[
rustToolchain

cargo-nextest
cargo-deny
cargo-llvm-cov
cargo-criterion
cargo-expand
cargo-edit

bacon
cargo-watch
git
hyperfine
just
jq
ripgrep
rust-analyzer
time
cmake
pkg-config
]
++ pkgs.lib.optionals pyscfSupported [
# PySCF is currently available from nixpkgs on x86_64-linux
# and aarch64-darwin.
pythonScientific
]
++ pkgs.lib.optionals pkgs.stdenv.isLinux [
clang
cargo-flamegraph
gdb
inferno
llvmPackages.bintools
perf
]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
libiconv
samply
];
packages = devPackages;

env = {
RUST_BACKTRACE = "1";
Expand Down
Loading