Skip to content

Commit

Permalink
nvidia_x11: fix build with latest kernel
Browse files Browse the repository at this point in the history
Thanks to yegortimoshenko.  Fixes #33284.
  • Loading branch information
vcunat committed Jan 1, 2018
1 parent 4220f56 commit 407e831
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/os-specific/linux/nvidia-x11/default.nix
Expand Up @@ -22,6 +22,11 @@ in
sha256_64bit = "1fxnqrin8clwl7g13zfnn4422ws0laraxwlvr9gqlp43k9nvc47v";
settingsSha256 = "081fmqk0d5fxn70kky59g9n024rb79ir6f5gf31mkw8zmyzqypvd";
persistencedSha256 = "1whhcsz6cij1c7pg4h8795rndp4rywx9k75cjlfh0s184lyi9wm2";
prePatch = ''
if [ "$system" = "x86_64-linux" ]; then
sed '1i#include <linux/sched/task_stack.h>' -i kernel/nvidia-uvm/uvm8_va_block.c
fi
'';
};

beta = generic {
Expand Down

0 comments on commit 407e831

Please sign in to comment.