Files
teleprof/shell.nix

33 lines
505 B
Nix

with import <nixpkgs> { };
let
buildInputs = [
# For minifb
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
# Wayland support
wayland
libxkbcommon
# Rust
rust-analyzer
];
in
mkShell {
nativeBuildInputs = [
pkg-config
];
inherit buildInputs;
shellHook = ''
export LD_LIBRARY_PATH="${lib.makeLibraryPath buildInputs}:$LD_LIBRARY_PATH"
echo "Teleprof dev environment loaded"
echo "Run: cargo run --example demo"
'';
}