mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
74087918ff
for userspace networking / Samba again. * vmtools: use KVM 74 and Linux 2.6.26, and use virtio for networking / disk access. svn path=/nixpkgs/trunk/; revision=12768
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{stdenv, fetchurl, kernelHeaders, zlib, e2fsprogs, SDL, alsaLib, pkgconfig, rsync}:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "kvm-74";
|
|
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/kvm/kvm-74.tar.gz;
|
|
sha256 = "0gnd5r9wb8mar3jh8gv46vdm3qkbgiwzkim5ki67kx3ca71g0m24";
|
|
};
|
|
|
|
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.
|
|
./readonly-kernel-r2.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";
|
|
};
|
|
}
|