2010-02-01 19:44:08 +01:00
|
|
|
{ stdenv, fetchurl, zlib, SDL, alsaLib, pkgconfig, pciutils, libuuid }:
|
2009-08-04 18:02:27 +02:00
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-03-09 13:53:42 +01:00
|
|
|
name = "qemu-kvm-0.12.3";
|
2009-08-04 18:02:27 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/kvm/${name}.tar.gz";
|
2010-03-09 13:53:42 +01:00
|
|
|
sha256 = "1cn20jsmf27h23ynm804bz41i2fmmbg02gbnfknz6cwbjg4cvk3p";
|
2009-08-04 18:02:27 +02:00
|
|
|
};
|
|
|
|
|
2010-02-01 16:12:49 +01:00
|
|
|
patches = [ ./unix-domain.patch ./smb-tmpdir.patch ];
|
2009-08-05 19:26:39 +02:00
|
|
|
|
2010-02-01 19:44:08 +01:00
|
|
|
buildInputs = [ zlib SDL alsaLib pkgconfig pciutils libuuid ];
|
2009-08-04 18:02:27 +02:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|