pkgs/qemu: tell qemu where to find smbd if smbdSupport is true (#41615)
This commit is contained in:
parent
8d488247e1
commit
0b3f13d442
@ -15,6 +15,7 @@
|
||||
, xenSupport ? false, xen
|
||||
, openGLSupport ? sdlSupport, mesa_noglu, epoxy, libdrm
|
||||
, virglSupport ? openGLSupport, virglrenderer
|
||||
, smbdSupport ? false, samba
|
||||
, hostCpuOnly ? false
|
||||
, nixosTestRunner ? false
|
||||
}:
|
||||
@ -63,7 +64,8 @@ stdenv.mkDerivation rec {
|
||||
++ optionals stdenv.isLinux [ alsaLib libaio libcap_ng libcap attr ]
|
||||
++ optionals xenSupport [ xen ]
|
||||
++ optionals openGLSupport [ mesa_noglu epoxy libdrm ]
|
||||
++ optionals virglSupport [ virglrenderer ];
|
||||
++ optionals virglSupport [ virglrenderer ]
|
||||
++ optionals smbdSupport [ samba ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@ -100,8 +102,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
configureFlags =
|
||||
[ "--smbd=smbd" # use `smbd' from $PATH
|
||||
"--audio-drv-list=${audio}"
|
||||
[ "--audio-drv-list=${audio}"
|
||||
"--sysconfdir=/etc"
|
||||
"--localstatedir=/var"
|
||||
]
|
||||
@ -117,7 +118,8 @@ stdenv.mkDerivation rec {
|
||||
++ optional gtkSupport "--enable-gtk"
|
||||
++ optional xenSupport "--enable-xen"
|
||||
++ optional openGLSupport "--enable-opengl"
|
||||
++ optional virglSupport "--enable-virglrenderer";
|
||||
++ optional virglSupport "--enable-virglrenderer"
|
||||
++ optional smbdSupport "--smbd=${samba}/bin/smbd";
|
||||
|
||||
doCheck = false; # tries to access /dev
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user