-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshell.nix
More file actions
67 lines (59 loc) · 1.73 KB
/
Copy pathshell.nix
File metadata and controls
67 lines (59 loc) · 1.73 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{ pkgs ?
import <nixpkgs> {
# overlays = [
# (import ./nix/vulkan-validation-layers-overlay.nix)
# ];
}}:
with pkgs;
mkShell ({
name = "ghengin";
packages = [
haskell.compiler.ghc912
haskell.packages.ghc912.cabal-install
pkg-config
zlib
glfw
# SDL2 # optionally, for debugging FIR. We don't support SDL2 yet
vulkan-headers
vulkan-loader
vulkan-validation-layers
vulkan-tools # <-- vulkaninfo
]
++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [
moltenvk
])
++ (pkgs.lib.optionals pkgs.stdenv.isLinux [
# Linux only pkgs
freetype
shaderc # GLSL to SPIRV compiler - glslc
# renderdoc # Graphics debugger
# tracy # Graphics profiler
vulkan-tools-lunarg # vkconfig
# bindings-GLFW
xorg.libX11
xorg.libXi
xorg.libXrandr
xorg.libXxf86vm
xorg.libXcursor
xorg.libXinerama
# debugging
# gdb
# libelf
# libdwarf
# elfutils
])
;
# Not really used, I think. But here are the headers.
VULKAN_SDK = "${vulkan-headers}";
# Validation layers
VK_LAYER_PATH = "${vulkan-validation-layers}/share/vulkan/explicit_layer.d";
} // pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
# To find vulkan at load time on linux
LD_LIBRARY_PATH = "${glfw}/lib:${freetype}/lib:${vulkan-loader}/lib:${vulkan-validation-layers}/lib";
} // pkgs.lib.optionalAttrs pkgs.stdenv.isDarwin {
# See "Set up the runtime environment manually"
# in https://vulkan.lunarg.com/doc/sdk/1.4.304.1/mac/getting_started.html
DYLD_LIBRARY_PATH="${glfw}/lib:${vulkan-loader}/lib";
# Tell the Vulkan Loader where to find a Vulkan driver:
VK_ICD_FILENAMES="${moltenvk}/share/vulkan/icd.d/MoltenVK_icd.json";
})