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:
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user