2009-08-04 18:02:27 +02:00
|
|
|
{stdenv, fetchurl, zlib, SDL, alsaLib, pkgconfig, pciutils}:
|
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2009-09-28 16:28:20 +02:00
|
|
|
name = "qemu-kvm-0.11.0";
|
2009-08-04 18:02:27 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/kvm/${name}.tar.gz";
|
2009-09-28 16:28:20 +02:00
|
|
|
sha256 = "1jcx0jak528ifa7v3040zyzlny9gyjmwycx6m2dv1wsllzrp2w34";
|
2009-08-04 18:02:27 +02:00
|
|
|
};
|
|
|
|
|
2009-08-05 19:26:39 +02:00
|
|
|
patches = [ ./unix-domain.patch ];
|
|
|
|
|
2009-08-04 18:02:27 +02:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|