QEMU-KVM 1.0 (tentative).

svn path=/nixpkgs/trunk/; revision=32637

+52
+51
pkgs/os-specific/linux/qemu-kvm/1.0.nix
··· 1 + { stdenv, fetchurl, attr, zlib, SDL, alsaLib, pkgconfig, pciutils, libuuid, vde2 2 + , libjpeg, libpng, ncurses, python, glib }: 3 + 4 + assert stdenv.isLinux; 5 + 6 + let version = "1.0"; in 7 + stdenv.mkDerivation rec { 8 + name = "qemu-kvm-${version}"; 9 + 10 + src = fetchurl { 11 + url = "mirror://sourceforge/kvm/qemu-kvm/${version}/${name}.tar.gz"; 12 + sha256 = "0vhigv9r9yrhph4wc4mhg99a683iwf121kjigqzg92x2l3ayl4dp"; 13 + }; 14 + 15 + patches = [ ./smb-tmpdir.patch ./qemu-img-fix-corrupt-vdi.patch ]; 16 + postPatch = 17 + '' for i in $(find kvm -type f) 18 + do 19 + sed -i "$i" \ 20 + -e 's|/bin/bash|/bin/sh|g ; 21 + s|/usr/bin/python|${python}/bin/python|g ; 22 + s|/bin/rm|rm|g' 23 + done 24 + ''; 25 + 26 + configureFlags = 27 + [ "--audio-drv-list=alsa" 28 + "--smbd=smbd" # use `smbd' from $PATH 29 + ]; 30 + 31 + enableParallelBuilding = true; 32 + 33 + buildInputs = 34 + [ attr zlib SDL alsaLib pkgconfig pciutils libuuid vde2 libjpeg libpng 35 + ncurses python glib 36 + ]; 37 + 38 + postInstall = 39 + '' 40 + # Libvirt expects us to be called `qemu-kvm'. Otherwise it will 41 + # set the domain type to "qemu" rather than "kvm", which can 42 + # cause architecture selection to misbehave. 43 + ln -sv $(cd $out/bin && echo qemu-system-*) $out/bin/qemu-kvm 44 + ''; 45 + 46 + meta = { 47 + homepage = http://www.linux-kvm.org/; 48 + description = "A full virtualization solution for Linux on x86 hardware containing virtualization extensions"; 49 + platforms = stdenv.lib.platforms.linux; 50 + }; 51 + }
+1
pkgs/top-level/all-packages.nix
··· 6043 6043 pwdutils = callPackage ../os-specific/linux/pwdutils { }; 6044 6044 6045 6045 qemu_kvm = callPackage ../os-specific/linux/qemu-kvm { }; 6046 + qemu_kvm_1_0 = callPackage ../os-specific/linux/qemu-kvm/1.0.nix { }; 6046 6047 6047 6048 firmwareLinuxNonfree = callPackage ../os-specific/linux/firmware/firmware-linux-nonfree { }; 6048 6049