forked from mirrors/nixpkgs
virtualboxGuestAdditions: fix compilation with kernel 5.2
This commit is contained in:
parent
e19054ab3c
commit
2756c3054c
|
@ -35,6 +35,11 @@ stdenv.mkDerivation {
|
|||
nativeBuildInputs = [ patchelf makeWrapper ];
|
||||
buildInputs = [ cdrkit ] ++ kernel.moduleBuildDependencies;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/vboxguest-${version}/vboxvideo/vbox_ttm.c \
|
||||
--replace "<ttm/" "<drm/ttm/"
|
||||
'';
|
||||
|
||||
unpackPhase = ''
|
||||
${if stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux" then ''
|
||||
isoinfo -J -i $src -x /VBoxLinuxAdditions.run > ./VBoxLinuxAdditions.run
|
||||
|
|
Loading…
Reference in a new issue