f719b5268e
ensures that Nix cleans up the qemu-smb directory after a VM test run (which prevents failures like this one: http://hydra.nixos.org/build/275355/nixlog/31/raw). svn path=/nixpkgs/trunk/; revision=19747
34 lines
877 B
Nix
34 lines
877 B
Nix
{stdenv, fetchurl, zlib, SDL, alsaLib, pkgconfig, pciutils}:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "qemu-kvm-0.12.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/kvm/${name}.tar.gz";
|
|
sha256 = "0nmg9dp3h040dkxq5vv4i7ip76v98rnhzqwy4pd88zznawc2k9l2";
|
|
};
|
|
|
|
patches = [ ./unix-domain.patch ./smb-tmpdir.patch ];
|
|
|
|
buildInputs = [zlib SDL alsaLib pkgconfig pciutils];
|
|
|
|
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.
|
|
cp pc-bios/optionrom/extboot.bin $out/share/qemu/
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://www.linux-kvm.org/;
|
|
description = "A full virtualization solution for Linux on x86 hardware containing virtualization extensions";
|
|
};
|
|
}
|