2018-06-27 04:36:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, python3, vulkan-headers, vulkan-loader,
|
2018-07-17 21:11:16 +01:00
|
|
|
glslang, pkgconfig, xlibsWrapper, libxcb, libXrandr, wayland }:
|
2018-06-27 04:36:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vulkan-validation-layers-${version}";
|
2018-08-17 07:05:27 +01:00
|
|
|
version = "1.1.82.0";
|
2018-06-27 04:36:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "Vulkan-ValidationLayers";
|
|
|
|
rev = "sdk-${version}";
|
2018-08-17 07:05:27 +01:00
|
|
|
sha256 = "0vq2hbha2i5wsi6w6kmxbv01a5f0d55w2grl73nya9i06764fdg6";
|
2018-06-27 04:36:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-07-17 21:11:16 +01:00
|
|
|
buildInputs = [ cmake python3 vulkan-headers vulkan-loader xlibsWrapper libxcb libXrandr wayland ];
|
2018-06-27 04:36:00 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DGLSLANG_INSTALL_DIR=${glslang}" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "LunarG Vulkan loader";
|
2018-07-20 02:12:04 +01:00
|
|
|
homepage = https://www.lunarg.com;
|
2018-06-27 04:36:00 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ralith ];
|
|
|
|
};
|
|
|
|
}
|