3
0
Fork 0
forked from mirrors/nixpkgs

vulkan-tools: 1.2.131.1 -> 1.2.141.0

This commit is contained in:
Câju Mihai-Drosi 2020-07-28 04:40:48 +03:00
parent fab03d3a39
commit bda92bfad0

View file

@ -1,22 +1,33 @@
{ stdenv, fetchFromGitHub, cmake, python3, vulkan-loader, vulkan-headers,
glslang, pkgconfig, xlibsWrapper, libxcb, libXrandr, wayland }:
{ stdenv, lib, fetchFromGitHub, cmake, python3, vulkan-loader,
vulkan-headers, glslang, pkgconfig, xlibsWrapper, libxcb,
libXrandr, wayland }:
stdenv.mkDerivation rec {
pname = "vulkan-tools";
version = "1.2.131.1";
version = "1.2.141.0";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-Tools";
rev = "sdk-${version}";
sha256 = "0ws47ansrr8cq4qjf6k4q0ygm9wwd3w7mhwqcl1qxms8lh5vmhfq";
sha256 = "1ch56ihm7rmilipfyc4i4ww7l6i20fb3qikkpm1ch43kzn42zjaw";
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ python3 vulkan-headers vulkan-loader xlibsWrapper libxcb libXrandr wayland ];
enableParallelBuilding = true;
cmakeFlags = [ "-DBUILD_ICD=OFF" "-DGLSLANG_INSTALL_DIR=${glslang}" ];
libraryPath = lib.strings.makeLibraryPath [ vulkan-loader ];
dontPatchELF = true;
cmakeFlags = [
# Don't build the mock ICD as it may get used instead of other drivers, if installed
"-DBUILD_ICD=OFF"
"-DGLSLANG_INSTALL_DIR=${glslang}"
# vulkaninfo loads libvulkan using dlopen, so we have to add it manually to RPATH
"-DCMAKE_INSTALL_RPATH=${libraryPath}"
];
meta = with stdenv.lib; {
description = "LunarG Vulkan loader";