diff options
author | Câju Mihai-Drosi <cajum.bugs@yandex.com> | 2020-07-28 04:40:48 +0300 |
---|---|---|
committer | Câju Mihai-Drosi <cajum.bugs@yandex.com> | 2020-09-24 08:19:42 +0300 |
commit | bda92bfad0f9b16425978784ced74753044ac18e (patch) | |
tree | ba185c8bcce31edf3264d809c0a8bc95572bac66 /pkgs/tools/graphics/vulkan-tools | |
parent | fab03d3a39a7d552583b0ea4e546fc69c7d0b221 (diff) |
vulkan-tools: 1.2.131.1 -> 1.2.141.0
Diffstat (limited to 'pkgs/tools/graphics/vulkan-tools')
-rw-r--r-- | pkgs/tools/graphics/vulkan-tools/default.nix | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/pkgs/tools/graphics/vulkan-tools/default.nix b/pkgs/tools/graphics/vulkan-tools/default.nix index 71bcdc2e2691b..e320e4e6ef3b0 100644 --- a/pkgs/tools/graphics/vulkan-tools/default.nix +++ b/pkgs/tools/graphics/vulkan-tools/default.nix @@ -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"; |