mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
1d4fb3340e
svn path=/nixpkgs/trunk/; revision=21913
34 lines
898 B
Nix
34 lines
898 B
Nix
{ stdenv, fetchurl, zlib, SDL, alsaLib, pkgconfig, pciutils, libuuid }:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "qemu-kvm-0.12.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/kvm/${name}.tar.gz";
|
|
sha256 = "07hqcjg97i8j4cvpq3nicwhnc8dvd23rjyl1arr8ayzg1mdgx28l";
|
|
};
|
|
|
|
patches = [ ./unix-domain.patch ./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";
|
|
};
|
|
}
|