aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell.nix')
-rwxr-xr-xshell.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100755
index 0000000..ad67225
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,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/";
+} \ No newline at end of file