Merge pull request #38316 from Rotaerk/vulkan-etc

Fix where Vulkan validation layer JSON files are placed by the nixpkgs install phase
This commit is contained in:
Michael Raskin 2018-06-24 05:42:42 +00:00 committed by GitHub
commit f8b0f68fd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -47,10 +47,11 @@ stdenv.mkDerivation rec {
mkdir -p $out/lib $out/bin
cp -d loader/libvulkan.so* $out/lib
cp demos/vulkaninfo $out/bin
mkdir -p $out/lib $out/share/vulkan/explicit_layer.d
mkdir -p $out/etc/vulkan/explicit_layer.d
ln -s $out/etc $out/share
cp -L layers/*.so $out/lib/
cp -L layers/*.json $out/share/vulkan/explicit_layer.d/
sed -i "s:\\./lib:$out/lib/lib:g" "$out/share/vulkan/"*/*.json
cp -L layers/*.json $out/etc/vulkan/explicit_layer.d/
sed -i "s:\\./lib:$out/lib/lib:g" "$out/etc/vulkan/"*/*.json
mkdir -p $dev/include
cp -rv ../include $dev/
mkdir -p $demos/share/vulkan-demos