first commit, not pretty
This commit is contained in:
28
shell.nix
Normal file
28
shell.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
with import <nixpkgs> { };
|
||||
|
||||
let
|
||||
buildInputs = [
|
||||
# For minifb
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXrandr
|
||||
xorg.libXi
|
||||
|
||||
# Wayland support
|
||||
wayland
|
||||
libxkbcommon
|
||||
];
|
||||
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"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user