QGIAGBN4LCV42BUKR6AD3XDC4FXMFCZQP6Q4KBSYMU3DQYAWMB2AC
nightly = true;
extensions = [
"rust-src"
"rust-analyzer"
];
targets = [
"aarch64-apple-darwin"
# "wasm32-wasi"
];
overrideToolchain = t: t.default.override { inherit extensions targets; };
fenix = import (fetchTarball "https://github.com/nix-community/fenix/archive/main.tar.gz") { };
enableWasm = true;
nightly = false;
toolchain = if nightly then fenix.default else fenix.stable;
wasmTarget = if nightly then "default" else "stable";
fenixPackage =
with fenix;
combine ([
(toolchain.withComponents ["cargo" "rustc" "rust-src" "rust-analyzer"])
]
++ lib.optional enableWasm [ targets.wasm32-unknown-unknown.${wasmTarget}.rust-std ]);