virtualbox: allow adding config flags via overrides

This is to prepare building the KVM version [1] as well. For that it will
be nice to reuse the existing expressions.

[1] https://github.com/cyberus-technology/virtualbox-kvm
This commit is contained in:
Julian Stecklina 2024-02-08 19:45:30 +01:00
parent c0674aafc7
commit 4596cd09eb

View File

@ -17,6 +17,7 @@
, headless ? false
, enable32bitGuests ? true
, enableWebService ? false
, extraConfigureFlags ? ""
}:
with lib;
@ -158,6 +159,7 @@ in stdenv.mkDerivation {
${optionalString (!enable32bitGuests) "--disable-vmmraw"} \
${optionalString enableWebService "--enable-webservice"} \
${optionalString (open-watcom-bin != null) "--with-ow-dir=${open-watcom-bin}"} \
${extraConfigureFlags} \
--disable-kmods
sed -e 's@PKG_CONFIG_PATH=.*@PKG_CONFIG_PATH=${libIDL}/lib/pkgconfig:${glib.dev}/lib/pkgconfig ${libIDL}/bin/libIDL-config-2@' \
-i AutoConfig.kmk