2025-09-30 18:02:55 -07:00
|
|
|
{ rust-bin, mkShell, noita-proxy }:
|
2025-09-30 12:46:50 -07:00
|
|
|
mkShell {
|
|
|
|
strictDeps = true;
|
|
|
|
|
2025-09-30 18:02:55 -07:00
|
|
|
inputsFrom = [ noita-proxy ];
|
|
|
|
|
2025-09-30 12:46:50 -07:00
|
|
|
packages = [
|
|
|
|
# Derivations in `rust-stable` provide the toolchain,
|
|
|
|
# must be listed first to take precedence over nightly.
|
|
|
|
(rust-bin.stable.latest.minimal.override {
|
|
|
|
extensions = [ "rust-src" "rust-docs" "clippy" ];
|
|
|
|
})
|
|
|
|
|
|
|
|
# Use rustfmt, and other tools that require nightly features.
|
|
|
|
(rust-bin.selectLatestNightlyWith (toolchain:
|
|
|
|
toolchain.minimal.override {
|
|
|
|
extensions = [ "rustfmt" "rust-analyzer" ];
|
|
|
|
}))
|
|
|
|
];
|
2025-09-30 18:02:55 -07:00
|
|
|
|
|
|
|
env = {
|
|
|
|
inherit (noita-proxy) OPENSSL_DIR OPENSSL_LIB_DIR OPENSSL_NO_VENDOR;
|
|
|
|
|
|
|
|
RUST_BACKTRACE = 1;
|
|
|
|
};
|
2025-09-30 12:46:50 -07:00
|
|
|
}
|