1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

* KVM 84. CIFS/Samba performance still broken.

* Kernel headers: KVM expects a include/linux/asm-x86 symlink, so
  provide it.

svn path=/nixpkgs/trunk/; revision=14113
This commit is contained in:
Eelco Dolstra 2009-02-18 14:53:14 +00:00
parent 9f4ca51e8e
commit 539239d66d
3 changed files with 13 additions and 8 deletions

View file

@ -20,9 +20,6 @@ stdenv.mkDerivation {
buildInputs = [perl];
# !!! hacky
fixupPhase = "ln -s $out/include/asm $out/include/asm-$platform";
extraIncludeDirs =
if stdenv.system == "powerpc-linux" then ["ppc"] else [];
@ -41,4 +38,12 @@ stdenv.mkDerivation {
ensureDir $out/include/config
echo "${version}-default" > $out/include/config/kernel.release
'';
# !!! hacky
fixupPhase = ''
ln -s asm $out/include/asm-$platform
if test "$platform" = "i386" -o "$platform" = "x86_64"; then
ln -s asm $out/include/asm-x86
fi
'';
}

View file

@ -2,12 +2,12 @@
assert stdenv.isLinux;
stdenv.mkDerivation {
name = "kvm-82";
stdenv.mkDerivation rec {
name = "kvm-84";
src = fetchurl {
url = mirror://sourceforge/kvm/kvm-82.tar.gz;
sha256 = "1fk58g8z9v7z42vy76zq0sq28slqf8zszzmh73vyxm07vfbc96zs";
url = "mirror://sourceforge/kvm/${name}.tar.gz";
sha256 = "13lqhy4lpxqby7qj3l1cdbj73c7jmvkq73bc5wchwn0l0dkjsjlk";
};
patches = [

View file

@ -6985,7 +6985,7 @@ let
kernelHeaders = kernelHeaders_2_6_26;
};
kvm82 = import ../os-specific/linux/kvm/82.nix {
kvm84 = import ../os-specific/linux/kvm/84.nix {
inherit fetchurl stdenv zlib e2fsprogs SDL alsaLib pkgconfig rsync;
kernelHeaders = kernelHeaders_2_6_28;
};