-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
42 lines (38 loc) · 974 Bytes
/
shell.nix
File metadata and controls
42 lines (38 loc) · 974 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
37
38
39
40
41
42
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
buildInputs = with pkgs; [
# Build tools
zig_0_15
dotnet-sdk_8
# Vulkan
shaderc
# Linux Rendering libraries
wayland
libxkbcommon
xorg.libX11
xorg.libXcursor
xorg.libXxf86vm
xorg.libXrandr
xorg.libXi
xorg.libXinerama
libGL
];
shellHook = let
runtimeLibraries = with pkgs; [
wayland
libxkbcommon
xorg.libX11
xorg.libXcursor
xorg.libXxf86vm
xorg.libXrandr
xorg.libXi
xorg.libXinerama
libGL
shader-slang
];
in ''
export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath runtimeLibraries}:$LD_LIBRARY_PATH
export VK_LAYER_PATH=${pkgs.vulkan-validation-layers}/share/vulkan/explicit_layer.d
'';
}