noita_entangled_worlds/nix/shell.nix

27 lines
679 B
Nix
Raw Permalink Normal View History

{ rust-bin, mkShell, noita-proxy }:
2025-09-30 12:46:50 -07:00
mkShell {
strictDeps = true;
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" ];
}))
];
env = {
inherit (noita-proxy) OPENSSL_DIR OPENSSL_LIB_DIR OPENSSL_NO_VENDOR;
RUST_BACKTRACE = 1;
};
2025-09-30 12:46:50 -07:00
}