blob: ad67225a807140ce97cc17405cbfffce47e028c1 (
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
|
{ 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-loader
vulkan-validation-layers
# Optional, but useful for debugging
renderdoc
];
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
SHADERC_LIB_DIR = "${pkgs.shaderc.lib}/lib/";
}
|