2008-06-05 12:59:41 +02:00
|
|
|
{stdenv, fetchurl, kernelHeaders, zlib, e2fsprogs, SDL, alsaLib, pkgconfig, rsync}:
|
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-11-19 18:21:49 +01:00
|
|
|
name = "kvm-76";
|
2008-06-05 12:59:41 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-11-19 18:21:49 +01:00
|
|
|
url = mirror://sourceforge/kvm/kvm-76.tar.gz;
|
|
|
|
sha256 = "06gf2aic6n0b3fnd9vi0llyydr2w6qnx1k8imm710862xhncpssk";
|
2008-06-05 12:59:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Allow setting the path to Samba through $QEMU_SMBD_COMMAND.
|
|
|
|
./smbd-path.patch
|
|
|
|
# The makefile copies stuff from the kernel directory and then
|
|
|
|
# tries to modify the copy, but it must be made writable first.
|
2008-08-29 16:08:54 +02:00
|
|
|
./readonly-kernel-r2.patch
|
2008-06-05 12:59:41 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|