aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
blob: 096c3914691e114e21c3aef2fcd796a80ebaa78d (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
{ 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
    ];

    LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";

    SHADERC_LIB_DIR = "${pkgs.shaderc.lib}/lib/";
}