mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-13 06:19:01 +00:00
26 lines
580 B
Nix
26 lines
580 B
Nix
# This is just for a quick development setup. Otherwise, I recommend
|
|
# to use the `rust` template from `nixpkgs` or whatever you prefer.
|
|
{ mkShell, openssl, pkg-config, cargo, rustc, rustfmt, rust-analyzer, meson
|
|
, ninja, rustPackages, rustPlatform }:
|
|
|
|
mkShell {
|
|
buildInputs = [
|
|
openssl # In case some package needs it.
|
|
pkg-config # In case some other package needs it.
|
|
|
|
# Rust platform.
|
|
cargo
|
|
rustc
|
|
rustfmt
|
|
rust-analyzer
|
|
|
|
# Also have these.
|
|
meson
|
|
ninja
|
|
];
|
|
|
|
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
|
|
|
inputsFrom = [ cargo rustc ];
|
|
}
|