From 357f31ddcabb1b7b2e5f13d9478a93cf5a123194 Mon Sep 17 00:00:00 2001 From: viric Date: Mon, 9 Nov 2009 11:55:23 +0000 Subject: [PATCH] Adding kvm88, although without the patches kvm86 had for some nix advantages (samba, ...), because they don't apply directly. git-svn-id: https://svn.nixos.org/repos/nix/nixpkgs/trunk@18309 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb --- pkgs/os-specific/linux/kvm/88.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/os-specific/linux/kvm/88.nix diff --git a/pkgs/os-specific/linux/kvm/88.nix b/pkgs/os-specific/linux/kvm/88.nix new file mode 100644 index 000000000..bfbfbd8e4 --- /dev/null +++ b/pkgs/os-specific/linux/kvm/88.nix @@ -0,0 +1,34 @@ +{stdenv, fetchurl, kernelHeaders, zlib, SDL, alsaLib, pkgconfig, pciutils}: + +assert stdenv.isLinux; + +stdenv.mkDerivation rec { + name = "kvm-88"; + + src = fetchurl { + url = "mirror://sourceforge/kvm/${name}.tar.gz"; + sha256 = "0gmmcwgkfk15wkcjaaa28nrzb0w3vbhg8p585qin61hz6kcy8ryw"; + }; + + configureFlags = "--enable-io-thread"; + + # e2fsprogs is needed for libuuid. + # rsync is a weird dependency used for copying kernel header files. + buildInputs = [zlib SDL alsaLib pkgconfig pciutils]; + + preConfigure = '' + for i in configure kvm/configure kvm/user/configure; do + substituteInPlace $i --replace /bin/bash $shell + done + + substituteInPlace kvm/libkvm/Makefile --replace kvm_para.h kvm.h # !!! quick hack + + # This prevents the kernel module from being built. + rm kvm/kernel/configure + ''; + + meta = { + homepage = http://kvm.qumranet.com/; + description = "A full virtualization solution for Linux on x86 hardware containing virtualization extensions"; + }; +} -- 2.11.4.GIT