Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shell.nix #344

Merged
merged 1 commit into from
Jan 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions shell.nix
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
'';
}
Loading