Commit f8372177 authored by Julian Stecklina's avatar Julian Stecklina Committed by Bjørn Forsman
Browse files

virtualbox: fix 3D acceleration

VBox needs libvulkan to start when 3D acceleration is
enabled.
parent 6568d9d3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 = {