nixpkgs/pkgs/tools/graphics/vulkan-tools/default.nix

29 lines
890 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, python3, vulkan-loader, vulkan-headers,
glslang, pkgconfig, xlibsWrapper, libxcb, libXrandr, wayland }:
2018-06-27 05:36:15 +02:00
stdenv.mkDerivation rec {
name = "vulkan-tools-${version}";
version = "1.1.106.0";
2018-06-27 05:36:15 +02:00
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-Tools";
rev = "sdk-${version}";
sha256 = "0swqyk16mbkivyk79dpqbhpw05a7yrakqynywznr5zgqbc0z4gj8";
2018-06-27 05:36:15 +02:00
};
nativeBuildInputs = [ cmake pkgconfig ];
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 ];
};
}