nixpkgs/pkgs/tools/graphics/vulkan-tools/default.nix
Anthony Cowley 570ea1e427 vulkan-tools: add dependency on vulkan-headers
This fixes the build on NixOS.
2019-04-11 12:59:41 -04:00

28 lines
890 B
Nix

{ stdenv, fetchFromGitHub, cmake, python3, vulkan-loader, vulkan-headers,
glslang, pkgconfig, xlibsWrapper, libxcb, libXrandr, wayland }:
stdenv.mkDerivation rec {
name = "vulkan-tools-${version}";
version = "1.1.101.0";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-Tools";
rev = "sdk-${version}";
sha256 = "03227qxa8q19qgzk30h0h49sh03idr6vh9srnrhiziw2vzmahmpp";
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ python3 vulkan-headers vulkan-loader xlibsWrapper libxcb libXrandr wayland ];
enableParallelBuilding = true;
cmakeFlags = [ "-DBUILD_ICD=OFF" "-DGLSLANG_INSTALL_DIR=${glslang}" ];
meta = with stdenv.lib; {
description = "LunarG Vulkan loader";
homepage = https://www.lunarg.com;
platforms = platforms.linux;
license = licenses.asl20;
maintainers = [ maintainers.ralith ];
};
}