-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
with import <nixpkgs> { }; | ||
let | ||
dlopen-libs = with xorg; [ vulkan-loader libX11 libXcursor libXrandr libXi ]; | ||
in mkShell { | ||
nativeBuildInputs = with pkgs; [ rustChannels.stable.rust pkg-config zstd protobuf ]; | ||
shellHook = '' | ||
export RUST_BACKTRACE=1 | ||
export ZSTD_SYS_USE_PKG_CONFIG=1 | ||
export SHADERC_LIB_DIR="${shaderc.static}/lib" | ||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${lib.makeLibraryPath dlopen-libs}" | ||
#export VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation | ||
export XDG_DATA_DIRS="$XDG_DATA_DIRS:${vulkan-validation-layers}/share" | ||
export RUST_LOG=client=trace,server=trace,common=trace,vulkan=info | ||
''; | ||
} |