Some of preparation work for adding Xen. Troubles: 1. Xen Dom0 support not complete in mainline. 2. Xen's love to check for headers in /usr/include. To do afterwards: We need to change bootloading setup a bit.

svn path=/nixpkgs/trunk/; revision=12941
This commit is contained in:
Michael Raskin 2008-10-04 15:24:08 +00:00
parent b28de1b619
commit 3a7ffa5c58
3 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,36 @@
args :
let
lib = args.lib;
fetchurl = args.fetchurl;
FullDepEntry = args.FullDepEntry;
version = lib.getAttr ["version"] "3.3.0" args;
_buildInputs = with args; [
python e2fsprogs gnutls pkgconfig libjpeg
ncurses SDL libvncserver zlib graphviz ghostscript
texLive
];
in
rec {
src = fetchurl {
url = "http://bits.xensource.com/oss-xen/release/${version}/xen-${version}.tar.gz";
sha256 = "0vghm31pqq8sc6x81jass2h5s22jlvv582xb8aq4j4cbcc5qixc9";
};
buildInputs = lib.filter (x: x != null) _buildInputs;
configureFlags = [];
/* doConfigure should be specified separately */
phaseNames = ["makeTools" "makeXen"];
makeTools = FullDepEntry (''make -C tools install PREFIX=$out '')
["minInit" "addInputs" "doUnpack"];
makeXen = FullDepEntry (''make -C xen install PREFIX=$out '')
["minInit" "addInputs" "doUnpack"];
name = "xen-" + version;
meta = {
description = "Xen paravirtualization tools";
};
}

View file

@ -16,6 +16,9 @@
, # Whether to build a User-Mode Linux kernel.
userModeLinux ? false
, # Whether to build a Xen kernel.
xen ? false
, # Allows you to set your own kernel version for output
version ? "unknown"
@ -72,6 +75,7 @@ stdenv.mkDerivation {
arch =
if userModeLinux then "um" else
if xen then "xen" else
if stdenv.system == "i686-linux" then "i386" else
if stdenv.system == "x86_64-linux" then "x86_64" else
abort "Platform ${stdenv.system} is not supported.";

View file

@ -3260,6 +3260,13 @@ let
inherit fetchurl stdenv;
};
libvncserver = builderDefsPackage (import ../development/libraries/libvncserver) {
inherit libtool libjpeg openssl zlib;
inherit (xlibs) xproto libX11 damageproto libXdamage
libXext xextproto fixesproto libXfixes xineramaproto
libXinerama libXrandr randrproto libXtst;
};
libvorbis = import ../development/libraries/libvorbis {
inherit fetchurl stdenv libogg;
};
@ -7010,6 +7017,16 @@ let
inherit fetchurl stdenv wxGTK chmlib;
};
/* Doesn't work yet
xen = builderDefsPackage (import ../applications/virtualization/xen) {
inherit python e2fsprogs gnutls pkgconfig libjpeg
ncurses SDL libvncserver zlib;
texLive = if (getConfig ["xen" "texLive"] false) then texLive else null;
graphviz = if (getConfig ["xen" "graphviz"] false) then graphviz else null;
ghostscript = if (getConfig ["xen" "ghostscript"] false) then ghostscript else null;
}; */
xfig = import ../applications/graphics/xfig {
stdenv = overrideGCC stdenv gcc34;
inherit fetchurl makeWrapper x11 Xaw3d libpng libjpeg;