2010-09-09 18:45:18 +02:00
|
|
|
{ stdenv, fetchurl, which, zlib, pkgconfig, SDL, openssl, python
|
|
|
|
, libuuid, gettext, ncurses, dev86, iasl, pciutils, bzip2, xz }:
|
|
|
|
|
|
|
|
let version = "4.0.1"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xen-${version}";
|
|
|
|
|
2008-10-04 17:24:08 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://bits.xensource.com/oss-xen/release/${version}/xen-${version}.tar.gz";
|
2010-09-09 18:45:18 +02:00
|
|
|
sha256 = "0ww8j5fa2jxg0zyx7d7z9jyv2j47m8w420sy16w3rf8d80lisvbf";
|
2008-10-04 17:24:08 +02:00
|
|
|
};
|
|
|
|
|
2010-09-09 18:45:18 +02:00
|
|
|
patches =
|
|
|
|
[ # Xen looks for headers in /usr/include and for libraries using
|
|
|
|
# ldconfig. Don't do that.
|
|
|
|
./has-header.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ which zlib pkgconfig SDL openssl python libuuid gettext ncurses
|
|
|
|
dev86 iasl pciutils bzip2 xz
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out)";
|
|
|
|
|
|
|
|
buildFlags = "xen tools";
|
2008-10-04 17:24:08 +02:00
|
|
|
|
2010-09-09 18:45:18 +02:00
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
cp -prvd dist/install/nix/store/* $out
|
|
|
|
cp -prvd dist/install/boot $out/boot
|
|
|
|
''; # */
|
2008-10-04 17:24:08 +02:00
|
|
|
|
|
|
|
meta = {
|
2010-09-09 18:45:18 +02:00
|
|
|
homepage = http://www.xen.org/;
|
|
|
|
description = "Xen hypervisor and management tools for Dom0";
|
2008-10-04 17:24:08 +02:00
|
|
|
};
|
|
|
|
}
|