chore: Implement display initialization
This commit is contained in:
parent
5adf93a9d3
commit
0fd3b21d6d
12 changed files with 501 additions and 20 deletions
35
shell.nix
Normal file
35
shell.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}: pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
# Runtime dependencies
|
||||
python3
|
||||
pciutils
|
||||
|
||||
# evdi build dependencies
|
||||
libdrm
|
||||
linuxHeaders
|
||||
|
||||
# raylib build dependencies
|
||||
libGL
|
||||
xorg.libXi
|
||||
xorg.libXcursor
|
||||
xorg.libXrandr
|
||||
xorg.libXinerama
|
||||
waylandpp
|
||||
libxkbcommon
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH="$PWD/evdi/library:$LD_LIBRARY_PATH"
|
||||
mkdir -p "$PWD/data/config" "$PWD/data/data"
|
||||
export UNREALXR_CONFIG_PATH="$PWD/data/config"
|
||||
export UNREALXR_DATA_PATH="$PWD/data/data"
|
||||
|
||||
if [ ! -d ".venv" ]; then
|
||||
python3 -m venv .venv
|
||||
fi
|
||||
|
||||
source .venv/bin/activate
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue