virtualbox: fix 3D acceleration

VBox needs libvulkan to start when 3D acceleration is
enabled.
This commit is contained in:
Julian Stecklina 2024-05-21 14:38:58 +02:00 committed by Bjørn Forsman
parent 6568d9d31b
commit f83721777d

@ -9,6 +9,7 @@
# the shipped alternative sources (assembly).
, open-watcom-bin
, makeself, perl
, vulkan-loader
, javaBindings ? true, jdk # Almost doesn't affect closure size
, pythonBindings ? false, python3
, extensionPack ? null, fakeroot
@ -263,7 +264,8 @@ in stdenv.mkDerivation (finalAttrs: {
# If hardening is disabled, wrap the VirtualBoxVM binary instead of patching
# the source code (see postPatch).
+ optionalString (!headless && !enableHardening) ''
wrapQtApp $out/libexec/virtualbox/VirtualBoxVM
wrapQtApp $out/libexec/virtualbox/VirtualBoxVM \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ vulkan-loader ]}"
'';
passthru = {