30 lines
540 B
Nix
30 lines
540 B
Nix
{
|
|
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)}";
|
|
'';
|
|
}
|