2021-12-26 09:33:00 +00:00
|
|
|
# This is just for a quick development setup. Otherwise, I recommend
|
|
|
|
# to use the `rust` template from `nixpkgs` or whatever you prefer.
|
2025-01-29 04:48:19 +00:00
|
|
|
{ mkShell, openssl, pkg-config, cargo, rustc, rustfmt, rust-analyzer, meson
|
|
|
|
, ninja, rustPackages, rustPlatform }:
|
2021-12-26 09:33:00 +00:00
|
|
|
|
|
|
|
mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
openssl # In case some package needs it.
|
2022-09-28 11:12:05 +00:00
|
|
|
pkg-config # In case some other package needs it.
|
2021-12-26 09:33:00 +00:00
|
|
|
|
|
|
|
# Rust platform.
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
rustfmt
|
|
|
|
rust-analyzer
|
2024-02-13 04:25:19 +00:00
|
|
|
|
|
|
|
# Also have these.
|
|
|
|
meson
|
|
|
|
ninja
|
2021-12-26 09:33:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
2022-11-10 14:08:22 +00:00
|
|
|
|
|
|
|
inputsFrom = [ cargo rustc ];
|
2021-12-26 09:33:00 +00:00
|
|
|
}
|