mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
Merge pull request #2465 from robberer/nvidia/driver
nvidia-x11: add nvidia-uvm module which is necessary for blender GPU support
This commit is contained in:
commit
ce87d3e307
@ -20,6 +20,9 @@ buildPhase() {
|
|||||||
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
|
||||||
|
cd uvm
|
||||||
|
make SYSSRC=$sysSrc SYSOUT=$sysOut module
|
||||||
|
cd ..
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -56,6 +59,7 @@ installPhase() {
|
|||||||
# Install the kernel module.
|
# Install the kernel module.
|
||||||
mkdir -p $out/lib/modules/$kernelVersion/misc
|
mkdir -p $out/lib/modules/$kernelVersion/misc
|
||||||
cp kernel/nvidia.ko $out/lib/modules/$kernelVersion/misc
|
cp kernel/nvidia.ko $out/lib/modules/$kernelVersion/misc
|
||||||
|
cp kernel/uvm/nvidia-uvm.ko $out/lib/modules/$kernelVersion/misc
|
||||||
|
|
||||||
# Install the X driver.
|
# Install the X driver.
|
||||||
mkdir -p $out/lib/xorg/modules
|
mkdir -p $out/lib/xorg/modules
|
||||||
|
Loading…
Reference in New Issue
Block a user