mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
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:
parent
c0674aafc7
commit
4596cd09eb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue