Initial commit

This commit is contained in:
Chandler Swift 2025-02-08 22:22:37 -06:00
commit f0ba450ecf
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
5 changed files with 462 additions and 0 deletions

31
shell.nix Normal file
View 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}";
}
) { }