Skip to content

Commit

Permalink
nvidia_x11: add missing vulkan files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jude Taylor committed Jan 29, 2017
1 parent 58dcda6 commit ffc498c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/os-specific/linux/nvidia-x11/builder.sh
Expand Up @@ -19,7 +19,7 @@ buildPhase() {
sysSrc=$(echo $kernel/lib/modules/$kernelVersion/source)
sysOut=$(echo $kernel/lib/modules/$kernelVersion/build)
unset src # used by the nv makefile
make SYSSRC=$sysSrc SYSOUT=$sysOut module
make SYSSRC=$sysSrc SYSOUT=$sysOut module -j$NIX_BUILD_JOBS

This comment has been minimized.

Copy link
@jb55

jb55 Feb 11, 2017

Contributor

This new line nukes my machine. It spawns around ~113 cc1's before my machine is OOM

This comment has been minimized.

Copy link
@jb55

jb55 Feb 11, 2017

Contributor

I'm guessing you meant to do NIX_BUILD_CORES here

This comment has been minimized.

Copy link
@pikajude

pikajude Feb 11, 2017

Contributor

Good catch, sorry about that


cd ..
fi
Expand All @@ -31,6 +31,9 @@ installPhase() {
mkdir -p "$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"
cp -prd *.so.* tls "$out/lib/"
rm "$out"/lib/lib{glx,nvidia-wfb}.so.* # handled separately
Expand Down Expand Up @@ -68,7 +71,7 @@ installPhase() {
ln -srnf "$libname" "$libname_short"
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
else
major=1
Expand Down

0 comments on commit ffc498c

Please sign in to comment.