zieltakt/shell.nix

31 lines
540 B
Nix
Raw Normal View History

2024-12-22 18:42:14 +02:00
{
pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell rec {
buildInputs = with pkgs; [
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libxcb
libxkbcommon
shaderc
directx-shader-compiler
libGL
vulkan-headers
vulkan-loader
vulkan-tools
vulkan-tools-lunarg
vulkan-validation-layers
wayland
];
nativeBuildInputs = [ pkgs.pkg-config ];
shellHook = ''
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${builtins.toString (pkgs.lib.makeLibraryPath buildInputs)}";
'';
}