Initial commit
This commit is contained in:
commit
f0ba450ecf
5 changed files with 462 additions and 0 deletions
31
shell.nix
Normal file
31
shell.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}:
|
||||
|
||||
pkgs.callPackage (
|
||||
{
|
||||
mkShell,
|
||||
# rustc,
|
||||
# cargo,
|
||||
rustup,
|
||||
rustPlatform,
|
||||
rustfmt,
|
||||
clippy,
|
||||
rust-analyzer,
|
||||
}:
|
||||
mkShell {
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [
|
||||
rustup
|
||||
rustfmt
|
||||
clippy
|
||||
rust-analyzer
|
||||
];
|
||||
|
||||
# Certain Rust tools won't work without this
|
||||
# rust-analyzer from nixpkgs does not need this.
|
||||
# This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension
|
||||
# See https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570/3?u=samuela. for more details.
|
||||
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
||||
}
|
||||
) { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue