3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/qemu-kvm/default.nix
Eelco Dolstra adce9ff2d1 * qemu-kvm updated to 0.13.0. Removed the Unix domain socket patch
because we don't need it anymore.

svn path=/nixpkgs/trunk/; revision=24351
2010-10-18 18:47:05 +00:00

34 lines
878 B
Nix

{ stdenv, fetchurl, zlib, SDL, alsaLib, pkgconfig, pciutils, libuuid }:
assert stdenv.isLinux;
stdenv.mkDerivation rec {
name = "qemu-kvm-0.13.0";
src = fetchurl {
url = "mirror://sourceforge/kvm/${name}.tar.gz";
sha256 = "0lxym4p2bvqcb37h3wbjd81w4jrj4dn5kivdxcpx27iwgq6n1ckd";
};
patches = [ ./smb-tmpdir.patch ];
buildInputs = [ zlib SDL alsaLib pkgconfig pciutils libuuid ];
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";
};
}