2009-01-13 13:40:58 +01:00
|
|
|
{stdenv, fetchurl, kernelHeaders, zlib, e2fsprogs, SDL, alsaLib, pkgconfig, rsync}:
|
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
2009-02-18 15:53:14 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "kvm-84";
|
2009-01-13 13:40:58 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-02-18 15:53:14 +01:00
|
|
|
url = "mirror://sourceforge/kvm/${name}.tar.gz";
|
|
|
|
sha256 = "13lqhy4lpxqby7qj3l1cdbj73c7jmvkq73bc5wchwn0l0dkjsjlk";
|
2009-01-13 13:40:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Allow setting the path to Samba through $QEMU_SMBD_COMMAND.
|
|
|
|
./smbd-path-r2.patch
|
|
|
|
# The makefile copies stuff from the kernel directory and then
|
|
|
|
# tries to modify the copy, but it must be made writable first.
|
|
|
|
./readonly-kernel-r3.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = "--with-patched-kernel --kerneldir=${kernelHeaders}";
|
|
|
|
|
|
|
|
# e2fsprogs is needed for libuuid.
|
|
|
|
# rsync is a weird dependency used for copying kernel header files.
|
|
|
|
buildInputs = [zlib e2fsprogs SDL alsaLib pkgconfig rsync];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
for i in configure user/configure; do
|
|
|
|
substituteInPlace $i --replace /bin/bash $shell
|
|
|
|
done
|
|
|
|
substituteInPlace libkvm/Makefile --replace kvm_para.h kvm.h # !!! quick hack
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://kvm.qumranet.com/;
|
|
|
|
description = "A full virtualization solution for Linux on x86 hardware containing virtualization extensions";
|
|
|
|
};
|
|
|
|
}
|