QEMU-KVM: Use `smbd' from $PATH.

svn path=/nixpkgs/trunk/; revision=32634
This commit is contained in:
Ludovic Courtès 2012-02-27 21:54:33 +00:00
parent 9e371a98c2
commit e3a27acfdb

View File

@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
patches = [ ./smb-tmpdir.patch ./qemu-img-fix-corrupt-vdi.patch ];
configureFlags = "--audio-drv-list=alsa";
configureFlags =
[ "--audio-drv-list=alsa"
"--smbd=smbd" # use `smbd' from $PATH
];
enableParallelBuilding = true;
@ -22,12 +25,6 @@ stdenv.mkDerivation rec {
ncurses python glib
];
preBuild =
''
# Don't use a hardcoded path to Samba.
substituteInPlace ./net.h --replace /usr/sbin/smbd smbd
'';
postInstall =
''
# extboot.bin isn't installed due to a bug in the Makefile.