-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
36 lines (28 loc) · 811 Bytes
/
shell.nix
File metadata and controls
36 lines (28 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ pkgs ? import <nixpkgs> {} }: with pkgs;
mkShell {
buildInputs = [
shaderc
vulkan-headers
vulkan-loader
vulkan-tools-lunarg
vulkan-helper
vulkan-tools
mangohud
vulkan-validation-layers
libGL
glfw
glfw2
glfw-wayland
wayland
glm
];
nativeBuildInputs = [
pkg-config
];
shellHook = ''zsh'';
# If it doesn’t get picked up through nix magic
VK_LAYER_PATH = "${vulkan-validation-layers}/share/vulkan/explicit_layer.d:${vulkan-tools-lunarg}/share/vulkan/explicit_layer.d";
VK_DRIVER_FILES = /run/opengl-driver/share/vulkan/icd.d/nvidia_icd.x86_64.json;
# VULKAN_SDK = "${pkgs.vulkan-tools-lunarg}";
LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${vulkan-tools-lunarg}/lib";
}