Setup Mageia 8 as a compiling kernel

It's been a very long time since I've had to setup Mageia for a compiling kernel for nvidia drivers, but with the latest release and nvidia dropping support for a lot of cards in the new drivers, I'm stuck with a lot of workstations that still need the older nvidia drivers. I know I can download the older version from nvidia and install/compile it myself, but it seems my memory isn't as good as it used to be on exactly which packages I need first. I know it requires the latest kernel, latest kernel-desktop-devel, and I thought that was it, but I get errors during the compile stating "this isn't a compiling kernel" from the nvidia driver install, so I think I'm still missing something somewhere.
If someone could point me in the right direction to what packages I'm missing, it would be greatly appreciated!
If someone could point me in the right direction to what packages I'm missing, it would be greatly appreciated!
