2019-04-11 17:59:41 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, python3, vulkan-loader, vulkan-headers,
|
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 {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "vulkan-tools";
|
2019-08-31 18:23:21 +01:00
|
|
|
version = "1.1.114.0";
|
2018-06-27 04:36:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "Vulkan-Tools";
|
|
|
|
rev = "sdk-${version}";
|
2019-08-06 23:42:10 +01:00
|
|
|
sha256 = "1d4fcy11gk21x7r7vywdcc1dy9j1d2j78hvd5vfh3vy9fnahx107";
|
2018-06-27 04:36:15 +01:00
|
|
|
};
|
|
|
|
|
2018-11-01 22:25:26 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2019-04-11 17:59:41 +01:00
|
|
|
buildInputs = [ python3 vulkan-headers 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 ];
|
|
|
|
};
|
|
|
|
}
|