vulkan-validation-layers: 1.1.82.0 -> 1.1.85.0

This requires knock-on upgrades for glslang and spirv-tools.

I have also made the validation layers easier to use:
- library files identified by layer definitions now use absolute paths
- the layer definition path is prepended to XDG_DATA_DIRS

Previously, one would have to modify LD_LIBRARY_PATH or install the
derivation in a known location for vulkan-loader to find relevant
files. These changes make using validation layers in a nix-shell work automatically.

Use XDG_DATA_DIRS environment variable rather than VK_LAYER_PATH
This commit is contained in:
Anthony Cowley
2018-12-08 00:51:39 -05:00
parent c26dbef830
commit 6492af66e1
3 changed files with 24 additions and 20 deletions
+3 -11
View File
@@ -2,23 +2,15 @@
stdenv.mkDerivation rec {
name = "glslang-git-${version}";
version = "2018-07-27";
version = "2018-09-26";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "glslang";
rev = "e99a26810f65314183163c07664a40e05647c15f";
sha256 = "1w11z518xfbnf34xgzg1mp3xicpw2qmpcvaixlzw79s9ifqg5lqs";
rev = "91ac4290bcf2cb930b4fb0981f09c00c0b6797e1";
sha256 = "0q477pm0n495acnss16ddlf82a6i5l2dfmvc7r8yi0bgmgpzi4av";
};
patches = [
# spirv-tools bump for vulkan sdk 1.1.82.1; remove on update
(fetchpatch {
url = "https://github.com/lenny-lunarg/glslang/commit/c7f4e818ac55f545289f87f8c37571b2eadcde86.patch";
sha256 = "197293alxjdpm3x1vd6pksdb1d9za42vlyn8yn2w786av0l7vf1k";
})
];
buildInputs = [ cmake bison jq ] ++ spirv-tools.buildInputs;
enableParallelBuilding = true;