build(nix): add new dependencies to nix build and dev env for wgpu

This commit is contained in:
Yusuf Bera Ertan 2021-06-04 00:08:02 +03:00
parent 221e848b71
commit 05cbaff682
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 5 additions and 1 deletions

View File

@ -109,6 +109,10 @@ key = "veloren-nix.cachix.org-1:zokfKJqVsNV6kI/oJdLF6TYBdNPYGSb+diMVQPn/5Rc="
buildInputs = ["openssl"] buildInputs = ["openssl"]
nativeBuildInputs = ["pkg-config"] nativeBuildInputs = ["pkg-config"]
[workspace.metadata.nix.crateOverride.shaderc-sys]
buildInputs = ["shaderc"]
nativeBuildInputs = ["cmake", "python3", "gnumake"]
[patch.crates-io] [patch.crates-io]
# macos CI fix isn't released yet # macos CI fix isn't released yet
winit = { git = "https://gitlab.com/veloren/winit.git", branch = "macos-test-spiffed" } winit = { git = "https://gitlab.com/veloren/winit.git", branch = "macos-test-spiffed" }

View File

@ -18,7 +18,7 @@ It is inspired by games such as Cube World, Legend of Zelda: Breath of the Wild,
This package includes the official client, Voxygen. This package includes the official client, Voxygen.
""" """
runtimeLibs = ["libGL", "xorg.libX11", "xorg.libXcursor", "xorg.libXrandr", "xorg.libXi"] runtimeLibs = ["libGL", "xorg.libX11", "xorg.libXcursor", "xorg.libXrandr", "xorg.libXi", "vulkan-loader", "vulkan-validation-layers", "vulkan-extension-layer"]
buildInputs = ["xorg.libxcb"] buildInputs = ["xorg.libxcb"]
[features] [features]