3
0
Fork 0
forked from mirrors/nixpkgs

vulkan-tools-lunarg: 1.2.162.0 → 1.2.176.0

This commit is contained in:
Kira Bruneau 2021-05-06 12:46:30 -04:00 committed by Joe Hermaszewski
parent 073b8ce738
commit ddd5302e6c
No known key found for this signature in database
GPG key ID: C8116E3A0C1CA76A

View file

@ -1,26 +1,44 @@
{ stdenv, cmake, expat, fetchFromGitHub, jq, lib, libXdmcp, libXrandr, libffi
, libxcb, pkg-config, python3, symlinkJoin, vulkan-headers, vulkan-loader
, vulkan-validation-layers, wayland, writeText, xcbutilkeysyms, xcbutilwm
, xlibsWrapper }:
{ lib
, stdenv
, fetchFromGitHub
, cmake
, python3
, jq
, expat
, libX11
, libXdmcp
, libXrandr
, libffi
, libxcb
, wayland
, xcbutilkeysyms
, xcbutilwm
, vulkan-headers
, vulkan-loader
, symlinkJoin
, vulkan-validation-layers
, writeText
}:
stdenv.mkDerivation rec {
pname = "vulkan-tools-lunarg";
# The version must match that in vulkan-headers
version = "1.2.162.0";
version = "1.2.176.0";
src = (assert version == vulkan-headers.version;
fetchFromGitHub {
owner = "LunarG";
repo = "VulkanTools";
rev = "sdk-${version}";
sha256 = "13v4202bfd7d7nwi8w12ja9k1vi10p9xxypzkpi063hmsgzxm5k5";
sha256 = "0p527nml2aj10rra2588dhvjmz63i6b69mc84x9s5wp85sazxxl1";
fetchSubmodules = true;
});
nativeBuildInputs = [ cmake pkg-config python3 jq ];
nativeBuildInputs = [ cmake python3 jq ];
buildInputs = [
expat
libX11
libXdmcp
libXrandr
libffi
@ -28,7 +46,6 @@ stdenv.mkDerivation rec {
wayland
xcbutilkeysyms
xcbutilwm
xlibsWrapper
];
cmakeFlags = [
@ -40,6 +57,8 @@ stdenv.mkDerivation rec {
paths = [ vulkan-validation-layers.headers vulkan-validation-layers ];
}
}"
# Hide dev warnings that are useless for packaging
"-Wno-dev"
];
preConfigure = ''
@ -63,7 +82,6 @@ stdenv.mkDerivation rec {
'';
# Same as vulkan-validation-layers
libraryPath = lib.strings.makeLibraryPath [ vulkan-loader ];
dontPatchELF = true;
# Help vulkan-loader find the validation layers