add development nix-shell file

This commit is contained in:
Aaron Honeycutt 2025-03-23 19:39:33 -06:00
parent 725967fe25
commit 3e2ac09e37

26
shell.nix Normal file
View file

@ -0,0 +1,26 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
# Rust
cargo
rustc
# Compiler
gnumake
clang
llvmPackages.libclang
llvmPackages.clang
# System
pkg-config
util-linux
];
shellHook = ''
export LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib"
export CLANG_PATH="${pkgs.llvmPackages.clang}/bin/clang"
export RUST_BACKTRACE=1
echo "Ready to make some rust!"
'';
}