nvidia_x11: add missing vulkan files

This commit is contained in:
Jude Taylor 2017-01-28 19:47:25 -08:00
parent 58dcda6b8c
commit ffc498c490
No known key found for this signature in database
GPG Key ID: 7BF1DC6E555A6167

View File

@ -19,7 +19,7 @@ buildPhase() {
sysSrc=$(echo $kernel/lib/modules/$kernelVersion/source) sysSrc=$(echo $kernel/lib/modules/$kernelVersion/source)
sysOut=$(echo $kernel/lib/modules/$kernelVersion/build) sysOut=$(echo $kernel/lib/modules/$kernelVersion/build)
unset src # used by the nv makefile unset src # used by the nv makefile
make SYSSRC=$sysSrc SYSOUT=$sysOut module make SYSSRC=$sysSrc SYSOUT=$sysOut module -j$NIX_BUILD_JOBS
cd .. cd ..
fi fi
@ -31,6 +31,9 @@ installPhase() {
mkdir -p "$out/etc/OpenCL/vendors" mkdir -p "$out/etc/OpenCL/vendors"
cp -p nvidia.icd $out/etc/OpenCL/vendors/ cp -p nvidia.icd $out/etc/OpenCL/vendors/
mkdir -p "$out/share/vulkan/icd.d"
cp -p nvidia_icd.json "$out/share/vulkan/icd.d/"
mkdir -p "$out/lib" mkdir -p "$out/lib"
cp -prd *.so.* tls "$out/lib/" cp -prd *.so.* tls "$out/lib/"
rm "$out"/lib/lib{glx,nvidia-wfb}.so.* # handled separately rm "$out"/lib/lib{glx,nvidia-wfb}.so.* # handled separately
@ -68,7 +71,7 @@ installPhase() {
ln -srnf "$libname" "$libname_short" ln -srnf "$libname" "$libname_short"
fi fi
if [[ $libname_short =~ libEGL.so || $libname_short =~ libEGL_nvidia.so ]]; then if [[ $libname_short =~ libEGL.so || $libname_short =~ libEGL_nvidia.so || $libname_short =~ libGLX.so || $libname_short =~ libGLX_nvidia.so ]]; then
major=0 major=0
else else
major=1 major=1