nix: initial tooling setup
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia510d6575a3796118a14dbc834af1ba16a6a6964
This commit is contained in:
parent
ef28bdaeb4
commit
563ff2b187
5 changed files with 125 additions and 0 deletions
45
nix/shell.nix
Normal file
45
nix/shell.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
mkShell,
|
||||
rustc,
|
||||
cargo,
|
||||
lld,
|
||||
rust-analyzer-unwrapped,
|
||||
rustfmt,
|
||||
clippy,
|
||||
taplo,
|
||||
cargo-nextest,
|
||||
rustPlatform,
|
||||
# Build deps
|
||||
openssl,
|
||||
pkg-config,
|
||||
}:
|
||||
mkShell {
|
||||
name = "rust";
|
||||
|
||||
strictDeps = true;
|
||||
packages = [
|
||||
rustc
|
||||
cargo
|
||||
lld
|
||||
|
||||
# Tools
|
||||
(rustfmt.override {asNightly = true;})
|
||||
clippy
|
||||
cargo
|
||||
taplo
|
||||
rust-analyzer-unwrapped
|
||||
|
||||
# Additional Cargo tooling
|
||||
cargo-nextest
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
env.RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue