-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
39 lines (35 loc) · 968 Bytes
/
shell.nix
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
37
38
39
{ pkgs ? import <nixpkgs> {}, zig }:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = with pkgs; [
# Build tools
zig.packages.x86_64-linux.master
cmake
dotnet-sdk_8
# Vulkan
vulkan-tools
vulkan-loader
vulkan-headers
vulkan-validation-layers
spirv-tools
shaderc
# Linux Rendering libraries
wayland
wayland-protocols
wayland-scanner
libxkbcommon
xorg.libX11
xorg.libXcursor
xorg.libXxf86vm
xorg.libXrandr
xorg.libXi
xorg.libXinerama
libGL
renderdoc
];
VULKAN_REGISTRY = "${pkgs.vulkan-headers}/share/vulkan/registry/vk.xml";
WL_PROTOCOL = "${pkgs.wayland-protocols}/share/wayland-protocols";
shellHook = ''
export LD_LIBRARY_PATH=${pkgs.wayland}/lib:$LD_LIBRARY_PATH
'';
}