libvirt: add enableGlusterfs option
This commit is contained in:
parent
54d0d2b43b
commit
063e8ee5cf
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
, enableXen ? false, xen ? null
|
||||
, enableIscsi ? false, openiscsi
|
||||
, enableCeph ? false, ceph
|
||||
, enableGlusterfs ? false, glusterfs
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
@ -72,6 +73,8 @@ in stdenv.mkDerivation rec {
|
|||
openiscsi
|
||||
] ++ optionals enableCeph [
|
||||
ceph
|
||||
] ++ optionals enableGlusterfs [
|
||||
glusterfs
|
||||
] ++ optionals stdenv.isDarwin [
|
||||
libiconv gmp
|
||||
];
|
||||
|
@ -119,6 +122,7 @@ in stdenv.mkDerivation rec {
|
|||
"-Dsecdriver_apparmor=enabled"
|
||||
"-Dnumad=enabled"
|
||||
"-Dstorage_disk=enabled"
|
||||
(opt "glusterfs" enableGlusterfs)
|
||||
(opt "storage_rbd" enableCeph)
|
||||
] ++ optionals stdenv.isDarwin [
|
||||
"-Dinit_script=none"
|
||||
|
|
Loading…
Reference in a new issue