blob: 473b512ee7cb2772772053b28acbe6fe0c5717d3 (
plain)
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
|
{ pkgs ? import <nixpkgs> {}, lib ? pkgs.stdenv.lib }:
pkgs.mkShell rec {
buildInputs = with pkgs;[
# Rust
rustup
# shaderc
shaderc.bin
shaderc.lib
# Build script dependencies
gcc
pkg-config
# Necessary X11 libraries
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
# Vulkan
vulkan-tools
vulkan-loader
vulkan-validation-layers
# Optional, but useful for debugging
renderdoc
lldb
];
VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
VK_LAYER_PATH = "${pkgs.vulkan-validation-layers}/share/vulkan/explicit_layer.d";
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
SHADERC_LIB_DIR = "${pkgs.shaderc.lib}/lib/";
}
|