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
|
, enableXen ? false, xen ? null
|
||||||
, enableIscsi ? false, openiscsi
|
, enableIscsi ? false, openiscsi
|
||||||
, enableCeph ? false, ceph
|
, enableCeph ? false, ceph
|
||||||
|
, enableGlusterfs ? false, glusterfs
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
@ -72,6 +73,8 @@ in stdenv.mkDerivation rec {
|
||||||
openiscsi
|
openiscsi
|
||||||
] ++ optionals enableCeph [
|
] ++ optionals enableCeph [
|
||||||
ceph
|
ceph
|
||||||
|
] ++ optionals enableGlusterfs [
|
||||||
|
glusterfs
|
||||||
] ++ optionals stdenv.isDarwin [
|
] ++ optionals stdenv.isDarwin [
|
||||||
libiconv gmp
|
libiconv gmp
|
||||||
];
|
];
|
||||||
|
@ -119,6 +122,7 @@ in stdenv.mkDerivation rec {
|
||||||
"-Dsecdriver_apparmor=enabled"
|
"-Dsecdriver_apparmor=enabled"
|
||||||
"-Dnumad=enabled"
|
"-Dnumad=enabled"
|
||||||
"-Dstorage_disk=enabled"
|
"-Dstorage_disk=enabled"
|
||||||
|
(opt "glusterfs" enableGlusterfs)
|
||||||
(opt "storage_rbd" enableCeph)
|
(opt "storage_rbd" enableCeph)
|
||||||
] ++ optionals stdenv.isDarwin [
|
] ++ optionals stdenv.isDarwin [
|
||||||
"-Dinit_script=none"
|
"-Dinit_script=none"
|
||||||
|
|
Loading…
Reference in a new issue