2018-06-27 04:36:15 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, python3, vulkan-loader,
|
2018-07-17 21:11:16 +01:00
|
|
|
glslang, pkgconfig, xlibsWrapper, libxcb, libXrandr, wayland }:
|
2018-06-27 04:36:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vulkan-tools-${version}";
|
2018-10-23 09:20:47 +01:00
|
|
|
version = "1.1.85";
|
2018-06-27 04:36:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "Vulkan-Tools";
|
|
|
|
rev = "sdk-${version}";
|
2018-10-23 09:20:47 +01:00
|
|
|
sha256 = "0f4dfr8g0vy7y1hvs6z9lw52kissailzisby4qnz4akv0zz5y5s5";
|
2018-06-27 04:36:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-07-17 21:11:16 +01:00
|
|
|
buildInputs = [ cmake python3 vulkan-loader xlibsWrapper libxcb libXrandr wayland ];
|
2018-06-27 04:36:15 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_ICD=OFF" "-DGLSLANG_INSTALL_DIR=${glslang}" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "LunarG Vulkan loader";
|
2018-07-06 02:35:28 +01:00
|
|
|
homepage = https://www.lunarg.com;
|
2018-06-27 04:36:15 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ralith ];
|
|
|
|
};
|
|
|
|
}
|