2019-04-11 18:59:41 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, python3, vulkan-loader, vulkan-headers,
|
2018-07-17 22:11:16 +02:00
|
|
|
glslang, pkgconfig, xlibsWrapper, libxcb, libXrandr, wayland }:
|
2018-06-27 05:36:15 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "vulkan-tools";
|
2020-01-29 08:11:09 +01:00
|
|
|
version = "1.2.131.1";
|
2018-06-27 05:36:15 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "Vulkan-Tools";
|
|
|
|
rev = "sdk-${version}";
|
2020-01-29 08:11:09 +01:00
|
|
|
sha256 = "0ws47ansrr8cq4qjf6k4q0ygm9wwd3w7mhwqcl1qxms8lh5vmhfq";
|
2018-06-27 05:36:15 +02:00
|
|
|
};
|
|
|
|
|
2018-11-01 23:25:26 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2019-04-11 18:59:41 +02:00
|
|
|
buildInputs = [ python3 vulkan-headers vulkan-loader xlibsWrapper libxcb libXrandr wayland ];
|
2018-06-27 05:36:15 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_ICD=OFF" "-DGLSLANG_INSTALL_DIR=${glslang}" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "LunarG Vulkan loader";
|
2018-07-06 03:35:28 +02:00
|
|
|
homepage = https://www.lunarg.com;
|
2018-06-27 05:36:15 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ralith ];
|
|
|
|
};
|
|
|
|
}
|