-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdev-shell.nix
63 lines (62 loc) · 952 Bytes
/
dev-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
with import <nixpkgs> {};
mkShell {
buildInputs = [
# rust
gdb
cargo
rustc
rustfmt
clippy
# xserver
xorg.libX11
xorg.libXi
xorg.libXcursor
xorg.libXrandr
xorg.libXext
xorg.libxshmfence
xorg.libXxf86vm
libxkbcommon
wayland
wayland-protocols
# libraries
libdrm
libelf
libGL
alsaLib
llvmPackages_11.llvm
# tools
cmake
meson
ninja
pkgconfig
python
(python3.withPackages(ps: [
ps.setuptools
ps.Mako
]))
bison
flex
zip
# vulkan
glslang
vulkan-headers
vulkan-loader
vulkan-validation-layers
vulkan-tools
# apps
mangohud
];
LIB_PATH = lib.makeLibraryPath [
vulkan-loader
libGL
xorg.libX11
xorg.libXi
xorg.libXcursor
xorg.libXrandr
wayland
libxkbcommon
];
shellHook = ''
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_PATH";
'';
}