mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
29 lines
894 B
Nix
29 lines
894 B
Nix
{ stdenv, fetchFromGitHub, cmake, python3, vulkan-headers, vulkan-loader,
|
|
glslang, pkgconfig, xlibsWrapper, libxcb, libXrandr, wayland }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "vulkan-validation-layers-${version}";
|
|
version = "1.1.82.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KhronosGroup";
|
|
repo = "Vulkan-ValidationLayers";
|
|
rev = "sdk-${version}";
|
|
sha256 = "0vq2hbha2i5wsi6w6kmxbv01a5f0d55w2grl73nya9i06764fdg6";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ cmake python3 vulkan-headers vulkan-loader xlibsWrapper libxcb libXrandr wayland ];
|
|
enableParallelBuilding = true;
|
|
|
|
cmakeFlags = [ "-DGLSLANG_INSTALL_DIR=${glslang}" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "LunarG Vulkan loader";
|
|
homepage = https://www.lunarg.com;
|
|
platforms = platforms.linux;
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.ralith ];
|
|
};
|
|
}
|