2008-02-07 09:02:28 +00:00
|
|
|
{stdenv, fetchurl, kernelHeaders, zlib, e2fsprogs, SDL, alsaLib}:
|
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "kvm-57";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/kvm/kvm-57.tar.gz;
|
|
|
|
sha256 = "016h5pf59fyz7skzsaprii2mdpxpb8hfnnr1w475qcfyy6ccr9r0";
|
|
|
|
};
|
|
|
|
|
2008-03-11 16:50:53 +00:00
|
|
|
patches = [
|
|
|
|
# Allow setting the path to Samba through $QEMU_SMBD_COMMAND.
|
|
|
|
./smbd-path.patch
|
|
|
|
];
|
|
|
|
|
2008-02-07 09:02:28 +00:00
|
|
|
configureFlags = "--with-patched-kernel --kerneldir=${kernelHeaders}";
|
|
|
|
|
|
|
|
# e2fsprogs is needed for libuuid.
|
|
|
|
buildInputs = [zlib e2fsprogs SDL alsaLib];
|
|
|
|
|
2008-03-10 15:24:42 +00:00
|
|
|
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
|
|
|
|
'';
|
2008-02-07 09:02:28 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://kvm.qumranet.com/;
|
|
|
|
description = "A full virtualization solution for Linux on x86 hardware containing virtualization extensions";
|
|
|
|
};
|
|
|
|
}
|