mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
pkgs/qemu: tell qemu where to find smbd if smbdSupport is true (#41615)
This commit is contained in:
parent
8d488247e1
commit
0b3f13d442
1 changed files with 6 additions and 4 deletions
|
@ -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 a new issue